Skip package-lock.json and yarn.lock in node_modules #431 (#485)

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow
2021-08-20 13:50:28 -04:00
committed by GitHub
parent cba5b5723b
commit ff828fbac2
116 changed files with 23778 additions and 5 deletions
@@ -0,0 +1,44 @@
# insert-css
insert a string of css into the `<head>`
[![browser support](https://ci.testling.com/substack/insert-css.png)](https://ci.testling.com/substack/insert-css)
# example
``` js
var insertCss = require('insert-css');
var styleElement = insertCss('body { background:blue; }');
```
# api
``` js
var insertCss = require('insert-css');
```
## var styleElement = insertCss(css, opts);
Insert some CSS into the page.
* `opts.container` - Which HTMLElement to use as the base mounting point, defaults to
`document.querySelector('head')`.
* `opts.prepend` - Add the CSS at the top level of the container instead of at the bottom level (default).
This is particullary useful for library creators where you may want your default CSS to be prepended so it
can be easily overriden by user styles.
# development
## example
``` sh
npm run example
```
## test
``` sh
npm test
```