vinyl-file
Advanced tools
+1
-1
@@ -31,3 +31,3 @@ 'use strict'; | ||
| path: pth, | ||
| stat: stat, | ||
| stat: stat | ||
| }); | ||
@@ -34,0 +34,0 @@ |
+6
-5
| { | ||
| "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": "*" | ||
| } | ||
| } |
+5
-6
@@ -8,3 +8,3 @@ # vinyl-file [](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 @@ |
4637
0.39%3
50%71
-1.39%+ Added
- Removed
Updated