Socket
Socket
Sign inDemoInstall

dynamic-style

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dynamic-style

Extremely simple dynamic style loading with promise API


Version published
Weekly downloads
3
Maintainers
1
Install size
3.94 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 30 Sep 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc