dynamic-style
v1.0.1
Published
Extremely simple dynamic style loading with promise API
Downloads
4
Maintainers
Readme
dynamic-style
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')