load-css-file

insert css file into the `<head>` element

Showing:

Popularity

Downloads/wk

1.2K

GitHub Stars

4

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

load-css-file

insert css file into the <head> element

install

npm install load-css-file --save

usage


var loadCss = require('load-css-file');
loadCss('https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css');

// or

loadCss({
  href: 'normalize.css',
  rel: 'stylesheet',
  text: 'text/css'
})

api

loadCss(source)

source string where to load the css from.

loadCss(object)

css attribute object. For available attributes see html link specification. e.g. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100