stylesheet-injector

1.0.1 • Public • Published

stylesheet-injector

Injects CSS stylesheets into DOM

js-semistandard-style

Installation

$ npm install stylesheet-injector --save

Usage

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.

Readme

Keywords

Package Sidebar

Install

npm i stylesheet-injector

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • agorokhov