🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign 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

0.0.2
latest
Source
npm
Version published
Weekly downloads
1.1K
-24.21%
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