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

8 Versions

  • 0.3.0                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.11                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (2)
Downloads
Today 209
This Week 1,841
This Month 3,059
Last Day 406
Last Week 1,939
Last Month 8,551
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |