strify

1.0.0 • Public • Published

strify

short cut for fs.readFileSync(__dirname + '/path/file.txt', 'utf-8')

install

npm install --save strify

use

it's just a tiny helper function:

strify('/path/file.txt');

that is equal to:

fs.readFileSync(__dirname + '/path/file.txt', 'utf-8')

example

var strify = require('strify');
 
var tmpl = strify('./views/login.ejs');
// tmpl holds the read file as a string.

license

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i strify

      Weekly Downloads

      2

      Version

      1.0.0

      License

      MIT

      Last publish

      Collaborators

      • andineck