StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/file-stat
Angelos Chatzimparmpas e069030893 fix the frontend 3 years ago
..
node_modules/lazy-cache fix the frontend 3 years ago
LICENSE fix the frontend 3 years ago
README.md fix the frontend 3 years ago
index.js fix the frontend 3 years ago
package.json fix the frontend 3 years ago
utils.js fix the frontend 3 years ago

README.md

file-stat NPM version

Set the stat property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.

This is inspired by the file.stat code in vinyl-fs. I needed a function that essentially did the same thing but could be used with stream or non-stream code.

Install

Install with npm

$ npm i file-stat --save

Usage

var through = require('through2');
var stats = require('file-stat');

function toStream(fp) {
  var stream = through.obj();
  stream.write({path: fp});
  stream.end();
  return stream;
}

toStream('README.md')
  .pipe(stats())
  .on('data', function (file) {
    // adds `stat` object to file
    console.log(file.stat);
  })
  .on('end', function () {
    console.log('Done.');
  });

async

A .getStats() method is exposed for non-stream usage.

stats.getStats({path: 'README.md'}, function (err, res) {
  // (typeof res.stat === 'object') => true
});

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on October 05, 2015.