Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Turns an arbitrary String into a CommonJS compatible module

Resources

Stars

9 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages