1.0.1 • Published 6 years ago

dynamic-style v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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')