Socket
Book a DemoInstallSign in
Socket

consolidate-styles

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consolidate-styles

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

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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.

Keywords

styles

FAQs

Package last updated on 25 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts