1.0.1 • Published 6 years ago
dynamic-style v1.0.1
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')