string-includer

1.0.2 • Public • Published

String includer

Parse html/js/css files - and parse include strings - to compile to a new file

Install

  npm install string-includer -S

Usage

 
  var stringinclude = require('string-includer');
  var cont = fs.readFileSync('./test/test.html');
  
  // test.html = 
  //  include partial-1.html
  //  include partial-2.html
  //  contents of original file
  
  var newstring = stringinclude(cont,'./test');
  
  // newstring = 
  //  contents of partial-1
  //  contents of partial-2
  //  contents of original file
 
 

License

MIT © Dmitri Kunin

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i string-includer

Weekly Downloads

4

Version

1.0.2

License

ISC

Last publish

Collaborators

  • dkunin