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

vinyl-file

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinyl-file - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

index.js

@@ -31,3 +31,3 @@ 'use strict';

path: pth,
stat: stat,
stat: stat
});

@@ -34,0 +34,0 @@

{
"name": "vinyl-file",
"version": "1.2.1",
"version": "1.3.0",
"description": "Create a vinyl file from an actual file",

@@ -10,3 +10,3 @@ "license": "MIT",

"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},

@@ -17,3 +17,3 @@ "engines": {

"scripts": {
"test": "node test.js"
"test": "xo && node test.js"
},

@@ -37,8 +37,9 @@ "files": [

"strip-bom-stream": "^1.0.0",
"vinyl": "^0.5.0"
"vinyl": "^1.1.0"
},
"devDependencies": {
"ava": "0.0.4",
"is-stream": "^1.0.0"
"is-stream": "^1.0.0",
"xo": "*"
}
}

@@ -8,3 +8,3 @@ # vinyl-file [![Build Status](https://travis-ci.org/sindresorhus/vinyl-file.svg?branch=master)](https://travis-ci.org/sindresorhus/vinyl-file)

```sh
```
$ npm install --save vinyl-file

@@ -17,11 +17,10 @@ ```

```js
var vinylFile = require('vinyl-file');
const vinylFile = require('vinyl-file');
const file = vinylFile.readSync('index.js');
var file = vinylFile.readSync('index.js');
console.log(file.path);
//=> /Users/sindresorhus/dev/vinyl-file/index.js
//=> '/Users/sindresorhus/dev/vinyl-file/index.js'
console.log(file.cwd);
//=> /Users/sindresorhus/dev/vinyl-file
//=> '/Users/sindresorhus/dev/vinyl-file'
```

@@ -28,0 +27,0 @@

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