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

    consolidate-stylespublic

    consolidate-styles NPM version

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

    Install with npm:

    npm i -g consolidate-styles --save-dev

    Install with bower:

    bower install consolidate-styles

    styles( html )

    Pass a string of HTML with the link or style tags to be consolidated.

    Example:

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

    See example.

    Author

    Jon Schlinkert

    License

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


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

    install

    npm i consolidate-styles

    Downloadslast 7 days

    4

    version

    0.1.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar