vinyl-file
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -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 @@ |
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
4637
3
71
+ Addedvinyl@1.2.0(transitive)
- Removedvinyl@0.5.3(transitive)
Updatedvinyl@^1.1.0