Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "lsr", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"description": "Recursive readdir (`ls -R`)", | ||
"keywords": [], | ||
"dependencies": { | ||
"promise": "~3.2.0", | ||
"barrage": "0.0.4" | ||
"@types/node": "^7.0.31", | ||
"barrage": "^1.1.0", | ||
"promise": "^7.2.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*" | ||
"mocha": "*", | ||
"typescript": "^2.3.4" | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "npm run build", | ||
"build": "tsc", | ||
"pretest": "npm run build", | ||
"test": "mocha -R spec" | ||
@@ -15,0 +25,0 @@ }, |
@@ -5,5 +5,5 @@ # lsr | ||
[![Build Status](https://travis-ci.org/ForbesLindesay/lsr.png?branch=master)](https://travis-ci.org/ForbesLindesay/lsr) | ||
[![Dependency Status](https://gemnasium.com/ForbesLindesay/lsr.png)](https://gemnasium.com/ForbesLindesay/lsr) | ||
[![NPM version](https://badge.fury.io/js/lsr.png)](http://badge.fury.io/js/lsr) | ||
[![Build Status](https://img.shields.io/travis/ForbesLindesay/lsr/master.svg)](https://travis-ci.org/ForbesLindesay/lsr) | ||
[![Dependency Status](https://img.shields.io/david/ForbesLindesay/lsr.svg)](https://david-dm.org/ForbesLindesay/lsr) | ||
[![NPM version](https://img.shields.io/npm/v/lsr.svg)](https://www.npmjs.com/package/lsr) | ||
@@ -17,15 +17,13 @@ ## Installation | ||
```js | ||
console.dir(lsr.sync(__dirname)) | ||
lsr(__dirname, function (err, res) { | ||
if (err) throw err | ||
const {lsrSync, lsrAsync, lsrStream} = require('lsrc'); | ||
// Synchronous | ||
console.dir(lsrSync(__dirname)) | ||
// Promise | ||
lsrAsync(__dirname).then(function (res) { | ||
console.dir(res) | ||
}) | ||
lsr(__dirname, {filter: function (stat) { return stat.name != 'node_modules' }}, function (err, res) { | ||
if (err) throw err | ||
console.dir(res) | ||
}) | ||
lsr(__dirname).done(function (res) { | ||
console.dir(res) | ||
}) | ||
lsr.stream(__dirname).pipe(getPath()).pipe(process.stdout) | ||
// Stream | ||
lsrStream(__dirname).pipe(getPath()).pipe(process.stdout) | ||
``` | ||
@@ -41,3 +39,3 @@ | ||
### lsr(dir, options, callback) | ||
### lsrAsync(dir, options, callback) | ||
@@ -54,3 +52,3 @@ Recursively lists the files and folders and calls the callback exactly once with the error or null as the first argument and an array of file system entries as the second argument. | ||
### lsr.sync(dir, options) | ||
### lsrSync(dir, options) | ||
@@ -65,3 +63,3 @@ Recursively lists the files and folders and returns an array of file system entries. | ||
### lsr.stream(dir, options) | ||
### lsrStream(dir, options) | ||
@@ -79,2 +77,2 @@ Recursively lists the files and folders and returns a stream of file system entries. | ||
MIT | ||
MIT |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
11190
188
3
2
5
73
1
+ Added@types/node@^7.0.31
+ Added@types/node@7.10.14(transitive)
+ Addedasap@1.0.02.0.6(transitive)
+ Addedbarrage@1.1.0(transitive)
+ Addedpromise@6.1.07.3.1(transitive)
- Removedbarrage@0.0.4(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@0.0.1(transitive)
- Removedpromise@3.2.0(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedstring_decoder@0.10.31(transitive)
Updatedbarrage@^1.1.0
Updatedpromise@^7.2.0