🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

loadcss

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadcss

Fast and reliable utility to asynchronously load multiple css files

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
931
31.68%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

css

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