style-inject
Inject style tag to document head.
Last updated 8 years ago by rem .
MIT · Repository · Bugs · Original npm
$ cnpm install style-inject 
SYNC missed versions from official npm registry.

style-inject

NPM version NPM downloads CircleCI donate chat

Inject style tag to document head.

Installation

npm install style-inject

Example

import styleInject from 'style-inject';
const css = `
  body {
    margin: 0;
  }
`;
styleInject(css, options);

Options

insertAt

Type: string
Possible values: top
Default: undefined

Insert style tag to specific position of head element.

License

MIT © EGOIST

Current Tags

  • 0.3.0                                ...           latest (8 years ago)

1 Versions

  • 0.3.0                                ...           8 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org