Socket
Book a DemoInstallSign in
Socket

cssdeps

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssdeps

Take some CSS, figure out what files it depends on.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

cssdeps

Take some CSS, figure out what files it depends on.

Build Status Dependency Status NPM version

Installation

npm install cssdeps

Usage

'use strict';

var fs = require('fs');
var assert = require('assert');
var cssdeps = require('cssdeps');

var fixture = fs.readFileSync(__dirname + '/fixture.css', 'utf8');

assert.deepEqual(cssdeps(fixture), [
  '/foo.css',
  '../bar.css',
  '../baz.css',
  'crazy.css',
  '../bing.css',
  '../photo.png',
  '../photoB.png'
]);

License

MIT

FAQs

Package last updated on 02 Apr 2014

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