1.0.1 • Published 8 years ago
moduleify-string v1.0.1
Turn a string into module.exports = string
.
JavaScript:
require('moduleify-string')('hello') // => 'module.exports = "hello";\n'
Shell:
moduleify-string < file.txt > module.js
cat file.txt | moduleify-string > module.js
modueify-string file.txt > module.js
That is all.