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

lsr

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lsr - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

lib/index.d.ts

18

package.json
{
"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

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