Comparing version 0.1.1 to 0.2.0
@@ -19,2 +19,3 @@ #!/usr/bin/env node | ||
nlf = require('../lib/nlf'), | ||
standardFormat = require('../lib/formatters/standard'), | ||
options = { | ||
@@ -39,7 +40,9 @@ directory: process.cwd() | ||
if (data && data.length > 0) { | ||
var moduleIndex; | ||
console.log(data[0].csvHeading()); | ||
for (moduleIndex = 0; moduleIndex < data.length; moduleIndex++) { | ||
console.log(data[moduleIndex].toCsvRecord()); | ||
} | ||
standardFormat.render(data, function (err, output) { | ||
if (err) { | ||
console.error(err); | ||
process.exit(1); | ||
} | ||
console.log(output); | ||
}); | ||
} | ||
@@ -46,0 +49,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"author": "Ian Kelly <iandotkelly@gmail.com>", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -20,3 +20,4 @@ "bin" : { | ||
"read-installed": "~0.2.2", | ||
"glob": "~3.2.1" | ||
"glob": "~3.2.1", | ||
"archy": "~0.0.2" | ||
}, | ||
@@ -23,0 +24,0 @@ "devDependencies": { |
@@ -15,17 +15,2 @@ # Node License Finder (nlf) | ||
### Programatically | ||
```javascript | ||
var nlf = require('nlf'); | ||
var results = nlf.find('/User/me/my-project', function (err, data) { | ||
// do something with the response object. | ||
console.log(JSON.stringify(data)); | ||
}); | ||
``` | ||
I will document the response object at some point, but it should be fairly straight forward. | ||
Note, if you run nlf programatically having installed it locally, it will find various spurious false positives from its own test data. So exclude the results from the nlf record. | ||
### CLI | ||
@@ -47,2 +32,26 @@ | ||
Example output: | ||
<pre> | ||
commander@0.6.1 [license(s): MIT] | ||
└── readme files: MIT | ||
read-installed@0.2.2 [license(s): BSD] | ||
└── license files: BSD | ||
glob@3.2.3 [license(s): BSD] | ||
├── package.json: BSD | ||
└── license files: BSD | ||
archy@0.0.2 [license(s): MIT/X11] | ||
└── package.json: MIT/X11 | ||
json-stringify-safe@5.0.0 [license(s): BSD] | ||
├── package.json: BSD | ||
└── license files: BSD | ||
should@1.2.2 [license(s): MIT] | ||
└── readme files: MIT | ||
</pre> | ||
To exclude development dependences and only analyze dependencies for production: | ||
@@ -55,2 +64,19 @@ | ||
### Programatically | ||
```javascript | ||
var nlf = require('nlf'); | ||
var results = nlf.find('/User/me/my-project', function (err, data) { | ||
// do something with the response object. | ||
console.log(JSON.stringify(data)); | ||
}); | ||
``` | ||
I will document the response object at some point, but it should be fairly straight forward. | ||
Note, if you run nlf programatically having installed it locally, it will find various spurious false positives from its own test data. So exclude the results from the nlf record. | ||
### Tests | ||
@@ -57,0 +83,0 @@ |
@@ -15,3 +15,3 @@ 'use strict'; | ||
test('unit/*.js'); | ||
test('unit/**/*.js'); | ||
@@ -18,0 +18,0 @@ globs(patterns, function (err, files) { |
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
306995
27
1170
114
4
+ Addedarchy@~0.0.2
+ Addedarchy@0.0.2(transitive)