npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

consolidate-scripts

0.1.1

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:0
$ npm install consolidate-scripts
DailyWeeklyMonthlyYearly

consolidate-scripts NPM version

Find script tags in HTML, consolidate and append them to the tag.

Install with npm:

npm i -g consolidate-scripts --save-dev

Install with bower:

bower install consolidate-scripts

scripts( html )

Pass a string of HTML to html with the script tags to be consolidated.

Example:

var scripts = require("consolidate-scripts");
var html = require('fs').readFileSync('index.html')
scripts(html);

See example.

Author

Jon Schlinkert

  • github/jonschlinkert
  • twitter/jonschlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on May 25, 2014.