1.0.0 • Published 10 years ago

rework-file v1.0.0

Weekly downloads
1
License
BSD
Repository
github
Last release
10 years ago

rework-file

NPM Build Status

Helper to read the input file and pass it to rework.

Call rework-file the same as you would call rework, except that you must pass the file name instead of the file contents. It will also set the source option to the file name if it is not set in the options.

var rework = require('rework-file');

// rework-file(fileName, [opts])

rework('my-file.css')
    .use(myPlugin())
    .toString();