Comparing version 0.1.0 to 0.1.1
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = function fileStats(options) { | ||
module.exports = function fileStats() { | ||
return through.obj(function (file, enc, cb) { | ||
@@ -9,0 +9,0 @@ var stream = this; |
{ | ||
"name": "file-stat", | ||
"description": "Set the `stat` property on a file object in a stream.", | ||
"version": "0.1.0", | ||
"description": "Set the `stat` property on a file object in a stream. Abstraction from vinyl-fs to support stream or non-stream usage.", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/jonschlinkert/file-stat", | ||
@@ -44,2 +44,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"list": [ | ||
"file-contents", | ||
"file-symlinks", | ||
"stream-loader", | ||
@@ -46,0 +48,0 @@ "vinyl", |
# file-stat [![NPM version](https://badge.fury.io/js/file-stat.svg)](http://badge.fury.io/js/file-stat) | ||
> Set the `stat` property on a file object in a stream. | ||
> Set the `stat` property on a file object in a stream. Abstraction from vinyl-fs to support stream or non-stream usage. | ||
This is inspired by the `file.stat` code in [vinyl-fs](http://github.com/wearefractal/vinyl-fs). I needed a function that essentially did the same thing but could be used with stream or non-stream code. | ||
## Install | ||
@@ -49,2 +51,4 @@ | ||
* [file-contents](https://github.com/jonschlinkert/file-contents): Set the `contents` property on a file object in a stream. | ||
* [file-symlinks](https://github.com/jonschlinkert/file-symlinks): Resolve symlinks and expose the `stat` property on a file object. | ||
* [stream-loader](https://github.com/jonschlinkert/stream-loader): create a read stream from a glob of files. can be used as a loader-cache… [more](https://github.com/jonschlinkert/stream-loader) | ||
@@ -80,2 +84,2 @@ * [vinyl](http://github.com/wearefractal/vinyl): A virtual file format | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 14, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 15, 2015._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5078
83