Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

require-string

0.1.0 • Public • Published

require-string

Turns an arbitrary String into a CommonJS compatible module.

So this:

.wat {
  color: red;
}
 
div i {
  color: blue;
}

Turns into this:

module.exports = function(){
  return ".wat {\n  color: red;\n}\n\ndiv i {\n  color: blue;\n}\n";
};

Installation

Install with component(1):

$ component install TooTallNate/require-string

API

requireString(String str) → String

License

MIT

Keywords

none

install

npm i require-string

Downloadsweekly downloads

0

version

0.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability