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

nlf

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlf - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

5

bin/nlf-cli.js

@@ -11,3 +11,3 @@ #!/usr/bin/env node

* @license http://opensource.org/licenses/MIT The MIT License
*
*
*/

@@ -29,5 +29,7 @@

.option('-c, --csv', 'output in csv format')
.option('-r, --reach [num]', 'package depth (reach)', parseInt, Infinity)
.parse(process.argv);
options.production = !program.dev;
options.depth = program.reach;

@@ -59,2 +61,1 @@ // select which formatter

});
1.1.0
=================
* Adds maximum depth feature
* Bump dependencies (archy@1.0.0)
1.0.2

@@ -3,0 +9,0 @@ =================

8

lib/nlf.js

@@ -191,3 +191,3 @@ /**

// if this is called with a missing or empty list - just callbacj
// if this is called with a missing or empty list - just callback
if (!filePaths || filePaths.length === 0) {

@@ -324,2 +324,3 @@ return callback(null);

options.production = options.production || false;
options.depth = typeof options.depth === 'number' ? options.depth : Infinity;

@@ -392,3 +393,6 @@ if (typeof options.directory !== 'string') {

// use npm read-installed module to search out all the node modules
readInstalled(options.directory, { log: log }, function (err, data) {
readInstalled(options.directory, {
log: log,
depth: options.depth
}, function (err, data) {

@@ -395,0 +399,0 @@ if (err) {

@@ -6,3 +6,3 @@ {

"author": "Ian Kelly <iandotkelly@gmail.com>",
"version": "1.0.2",
"version": "1.1.0",
"license": "MIT",

@@ -18,3 +18,3 @@ "bin": {

"dependencies": {
"archy": "^0.0.2",
"archy": "0.0.2",
"commander": "^2.3.0",

@@ -21,0 +21,0 @@ "glob": "^4.0.2",

@@ -15,4 +15,11 @@ <!-- @@NLF-IGNORE@@ -->

nlf can be used programatically, or from the command line.
nlf can be used programmatically, or from the command line.
## Options
- `directory` (String) - where to look
- `production` (Boolean) (Default:false) - only traverse dependencies, no dev-dependencies
- `depth` (Number) (Default: Infinity) - how deep to traverse packages where 0 is the current package.json only
### CLI

@@ -64,3 +71,3 @@

To exclude development dependences and only analyze dependencies for production:
To exclude development dependencies and only analyze dependencies for production:

@@ -72,3 +79,3 @@ ```sh

### Programatically
### Programmatically

@@ -75,0 +82,0 @@ ```javascript

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