# load-css

> Dynamically loads CSS into the document head.

Latest version **0.1.0** (published 2013-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install load-css
pnpm add load-css
yarn add load-css
bun add load-css
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-09-20 |
| First published | 2013-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Thorsten Lorenz |
| Maintainers | thlorenz |

## Links

- npm: https://www.npmjs.com/package/load-css
- Repository: https://github.com/thlorenz/load-css
- Issues: https://github.com/thlorenz/load-css/issues
- npm.io page: https://npm.io/package/load-css

## Recent versions

- 0.1.0 (latest) — 2013-09-20
- 0.0.1 — 2013-09-20

## README

# load-css

[![testling badge](https://ci.testling.com/thlorenz/load-css.png)](https://ci.testling.com/thlorenz/load-css)

Dynamically loads CSS into the document head.

```js
var loadCSS = require('load-css');
var css = [
  'div {'
, ' color: green;'
, '}'
].join('\n')

loadCSS(css);
```

## Installation

    npm install load-css

## API

####*loadCSS(css)*

```
/**
 * Loads the given css string into the document head as an inlined script.
 * 
 * @name loadCSS
 * @function
 * @param css {String} the css to load
 */
```

## Examples

You can run the [examples](https://github.com/thlorenz/load-css/tree/master/examples) via the following commands:

- `npm run demo-string` demonstrates how to load a css string
- `npm run demo-filw` demonstrates how to load a css file using the [brfs](https://github.com/substack/brfs) [browserify](https://github.com/substack/node-browserify) transform

## License

MIT

---
_Source: https://npm.io/package/load-css · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
