Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

file-stat

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-stat - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

index.js

@@ -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._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc