MCPcopy Create free account
hub / github.com/firekylin/firekylin / write

Function write

bin/ssl/https.js:70–79  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

68}
69
70function write(data) {
71 return new Promise(function(res, rej) {
72 fs.writeFile('./nginx_default.conf',data,function(err) {
73 if(err) {
74 console.log(err);
75 }
76 })
77 })
78
79}
80
81read().then(function(data) {write(data)});
82//read().then(function(data) { });

Callers 1

https.jsFile · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected