filo
v0.0.7
Published
virtual file object
Downloads
22
Readme
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 ofVinyl
.filo.files
should have the same extension withfilo.ext
.- if you set
filo.ext
with a different value. all the file will change the extension offile.path
.
Tests
To run tests run:
gulp test