node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

rawify

Rawify

require any file as a string.

Usage

npm i rawify

Then, require stuff:

// Plaintext
var anythingText = require('anything.txt');

// Css
var css = require('styles.css');