dynamic-style

1.0.1 • Public • Published

dynamic-style

Greenkeeper badge Travis badge standard badge npm

Extremely simple dynamic style loader with promise API

Companion to dynamic-script

Goals

  • Simple and readable source code
  • Small API
  • Fully tested

Install

$ npm install dynamic-style

Usage

const loadStyle = require('dynamic-style')
 
// url is set as <link href="${url}" rel="stylesheet">
await loadStyle('https://url.com/file.css')

Package Sidebar

Install

npm i dynamic-style

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

4.03 kB

Total Files

7

Last publish

Collaborators

  • kayleepop