style-inject
Inject style tag to document head.
Last updated 9 years ago by rem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (9 years ago)

8 Versions

  • 0.3.0                                ...           9 years ago
  • 0.2.1                                ...           9 years ago
  • 0.2.0                                ...           9 years ago
  • 0.1.2                                ...           9 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.11                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
Maintainers (2)
Downloads
Total 49
Today 0
This Week 3
This Month 32
Last Day 0
Last Week 19
Last Month 2
Dependencies (0)
None
Dev Dependencies (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE