New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

strify

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strify

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

readfile

FAQs

Package last updated on 02 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts