cssdeps

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cssdeps
641.0.09 years ago9 years agoMinified + gzip package size for cssdeps in KB

Readme

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