New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadcss

Fast and reliable utility to asynchronously load multiple css files

0.0.2
latest
Version published
Weekly downloads
1.5K
-38.33%
Maintainers
1
Weekly downloads
 
Created

loadcss

npm version Build Status

Fast and reliable utility to asynchronously load multiple css files and apply to the document.

Installation

$ npm install loadcss

API

import loadcss from 'loadcss';

// load a single css file
loadcss('/foo.css', links => {
  links.forEach(link => console.log(link.href));
});

// load multiple css files
loadcss(['/a/foo.css', '/b/bar.css'], links => {
  links.forEach(link => console.log(link.href));
});

Running tests

$ npm install
$ npm test

License

MIT

FAQs

Package last updated on 20 Feb 2017

Did you know?

Socket

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