stylesheet-injector
v1.0.1
Published
Injects CSS stylesheets into DOM
Readme
stylesheet-injector
Injects CSS stylesheets into DOM
Installation
$ npm install stylesheet-injector --saveUsage
const stylesheetInjector = require('stylesheet-injector');
const styleString = getStyleStringSomehow();
stylesheetInjector('myAwsomeStyles', styleString);API
require('stylesheet-injector')(title, content)
Type: {Function}
{String} title- Title of the injected stylesheet.{String} content- CSS content.
