filo

0.0.7 • Public • Published

usage

sorry for my poor english

new Filo(url, options);

url format:

  • test.js
  • test/resource/a.js
  • test/??resource/a.js,b.js

example:

var Filo = require('filo');
var filo = new Filo("a.js", {
    cwd: __dirname
});
if(filo.isAvailable()) {
    filo.output(); // return file buffer
}
filo.combine('b.js');
filo.output(); // module `a` and `b` combine;

detail in test/test.js

Notice

  • filo.files is instance of Vinyl.
  • filo.files should have the same extension with filo.ext.
  • if you set filo.ext with a different value. all the file will change the extension of file.path.

Tests

To run tests run:

gulp test

Readme

Keywords

none

Package Sidebar

Install

npm i filo

Weekly Downloads

0

Version

0.0.7

License

none

Last publish

Collaborators

  • wuake