Closed aredridel closed 10 years ago
licensing --name tape
Resolving dependencies, this might take a while
tape is licensed as: MIT
Licenses information:
glob@~3.2.9 : BSD 4-Clause
defined@~0.0.0 : MIT
inherits@~2.0.1 : ISC
inherits@2 : ISC
object-inspect@~0.4.0 : MIT
deep-equal@~0.2.0 : MIT
resumer@~0.0.0 : MIT
through@~2.3.4 : MIT
minimatch@~0.2.11 : MIT
lru-cache@2 : MIT
sigmund@~1.0.0 : BSD 4-Clause
Found a module that is incorrectly or not detected at all but does
have a valid license? Please report this at:
https://github.com/3rd-Eden/licenses/issues/new
Which is the library that does the actual parsing and detection of
the license so we can improve it's parsing algorithm and yield
better results.
Do you still have the same issues? It could be that npm was down or that a github limit was reached (as the api is rate limited at 60 lookups per hour)
Interesting: it works with --name
, but not in a project with it declared as a devDependency
@aredridel could you post your package.json and or/and output of DEBUG=* licenses
{
"name": "nearley-stream",
"version": "0.0.5",
"description": "Simple Earley parsing for JS",
"main": "lib/nearley.js",
"dependencies": {
"nomnom": "~1.6.2"
},
"devDependencies": {
"tape": "~2.10.2"
},
"bin": {
"snearleyc": "bin/snearleyc.js"
},
"keywords": [
"parser",
"generator",
"compiler"
],
"author": "Hardmath123",
"contributors": [
"Aria Stewart <aredridel@nbtsc.org>"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/aredridel/nearley-stream/"
}
}
And output:
DEBUG=* licensing
mana registered endpoint packages +0ms
mana registered endpoint repository +0ms
mana updated potion.version to 0.0.5 +1ms
mana updated potion.name to githulk +0ms
mana registered endpoint users +195ms
mana updated potion.version to 0.0.11 +1ms
mana updated potion.name to npm-registry +0ms
Resolving dependencies, this might take a while
shrinkwrap retreiving dependency nomnom@~1.6.2 +0ms
mana:npm-registry adding an `all` callback for urid nomnom +0ms
mana:npm-registry resolving url from with root: http://registry.npmjs.org/ and path: nomnom +2ms
mana:npm-registry requesting url http://registry.npmjs.org/nomnom +3ms
mana registered endpoint packages +446ms
mana registered endpoint users +13ms
mana updated potion.version to 0.1.0 +1ms
mana updated potion.name to npm-registry +0ms
licenses::parse searching for licensing information for nomnom +0ms
licenses::parse attempting to extract the license information using: github +1ms
mana:githulk adding an `all` callback for urid harthur/nomnom +0ms
mana:githulk resolving url from with root: https://github.com/ and path: harthur/nomnom +1ms
mana:githulk requesting url https://github.com/harthur/nomnom +1ms
mana:githulk adding an `all` callback for urid repos/harthur/nomnom/contents/ +130ms
mana:githulk resolving url from with root: https://api.github.com/ and path: repos/harthur/nomnom/contents/ +2ms
mana:githulk requesting url https://api.github.com/repos/harthur/nomnom/contents/ +0ms
licenses::github searching LICENSE for license information +0ms
mana:githulk adding an `all` callback for urid harthur/nomnom/master/LICENSE +86ms
mana:githulk resolving url from with root: https://raw.github.com/ and path: harthur/nomnom/master/LICENSE +1ms
mana:githulk requesting url https://raw.github.com/harthur/nomnom/master/LICENSE +0ms
licenses::parser had a 0% match for AFL 2.1 +0ms
licenses::parser had a 0% match for AFL 3.0 +1ms
licenses::parser had a 0.17953321364452424% match for AGPL 3.0 +1ms
licenses::parser had a 0.1371742112482853% match for APL 1.0 +1ms
licenses::parser had a 0% match for Apache 2.0 +1ms
licenses::parser had a 0% match for Artistic 2.0 +0ms
licenses::parser had a 2.631578947368421% match for BSD 2-Clause +0ms
licenses::parser had a 2.272727272727273% match for BSD 3-Clause +1ms
licenses::parser had a 0% match for BSD 4-Clouse +0ms
licenses::parser had a 31.70731707317073% match for BSL 1.0 +0ms
licenses::parser had a 0.2915451895043732% match for EPL 1.0 +0ms
licenses::parser had a 0.33557046979865773% match for GPL 2.0 +1ms
licenses::parser had a 0.08779631255487269% match for GPL 3.0 +1ms
licenses::parser had a 21.73913043478261% match for ISC.txt +0ms
licenses::parser had a 0.340522133938706% match for LGPL 2.1 +1ms
licenses::parser had a 0% match for LGPL 3.0 +0ms
licenses::parser had a 97.05882352941177% match for MIT +0ms
licenses::parser had a 0.1314060446780552% match for MPL +1ms
licenses::parser had a 0% match for MPL 2.0 +1ms
licenses::parser had a 0.6756756756756757% match for Python 2.0 +0ms
licenses::parser had a 32.5% match for UNLICENSE +0ms
licenses::parser had a 0% match for WTFPL +0ms
licenses::parser had a 0% match for Beerware +0ms
licenses::parser had a 0% match for CDDL 1.0 +1ms
licenses::parser had a 0.23696682464454977% match for NASA 1.3 +1ms
licenses::parser had a 0% match for zlib/libpng +1ms
licenses::content license file scan resulted in MIT as matching license +0ms
licenses::parser normalized MIT to MIT using the "direct match" method +0ms
licenses::github extracted MIT from LICENSE +80ms
licenses::parse parsing with github was successful +302ms
shrinkwrap retreiving dependency colors@0.5.x +714ms
mana:npm-registry adding an `all` callback for urid colors +708ms
shrinkwrap retreiving dependency underscore@~1.4.4 +1ms
mana:npm-registry adding an `all` callback for urid underscore +1ms
mana:npm-registry resolving url from with root: http://registry.npmjs.org/ and path: colors +1ms
mana:npm-registry requesting url http://registry.npmjs.org/colors +0ms
mana:npm-registry resolving url from with root: http://registry.npmjs.org/ and path: underscore +1ms
mana:npm-registry requesting url http://registry.npmjs.org/underscore +0ms
licenses::parse searching for licensing information for colors +95ms
licenses::parse attempting to extract the license information using: github +0ms
mana:githulk adding an `all` callback for urid Marak/colors.js +175ms
mana:githulk resolving url from with root: https://github.com/ and path: Marak/colors.js +0ms
mana:githulk requesting url https://github.com/Marak/colors.js +1ms
licenses::parse searching for licensing information for underscore +45ms
licenses::parse attempting to extract the license information using: registry +1ms
licenses::npm found MIT in the package contents +0ms
licenses::parser normalized MIT to MIT using the "direct match" method +142ms
licenses::parse parsing with registry was successful +0ms
mana:githulk adding an `all` callback for urid repos/Marak/colors.js/contents/ +113ms
mana:githulk resolving url from with root: https://api.github.com/ and path: repos/Marak/colors.js/contents/ +1ms
mana:githulk requesting url https://api.github.com/repos/Marak/colors.js/contents/ +0ms
licenses::github searching MIT-LICENSE.txt for license information +310ms
mana:githulk adding an `all` callback for urid Marak/colors.js/master/MIT-LICENSE.txt +100ms
mana:githulk resolving url from with root: https://raw.github.com/ and path: Marak/colors.js/master/MIT-LICENSE.txt +1ms
mana:githulk requesting url https://raw.github.com/Marak/colors.js/master/MIT-LICENSE.txt +0ms
licenses::parser had a 0% match for AFL 2.1 +231ms
licenses::parser had a 0% match for AFL 3.0 +1ms
licenses::parser had a 0.17953321364452424% match for AGPL 3.0 +0ms
licenses::parser had a 0.1371742112482853% match for APL 1.0 +1ms
licenses::parser had a 0% match for Apache 2.0 +1ms
licenses::parser had a 0% match for Artistic 2.0 +0ms
licenses::parser had a 2.631578947368421% match for BSD 2-Clause +0ms
licenses::parser had a 2.272727272727273% match for BSD 3-Clause +0ms
licenses::parser had a 0% match for BSD 4-Clouse +0ms
licenses::parser had a 31.70731707317073% match for BSL 1.0 +0ms
licenses::parser had a 0.2915451895043732% match for EPL 1.0 +0ms
licenses::parser had a 0.33557046979865773% match for GPL 2.0 +1ms
licenses::parser had a 0.08779631255487269% match for GPL 3.0 +1ms
licenses::parser had a 21.73913043478261% match for ISC.txt +9ms
licenses::parser had a 0.340522133938706% match for LGPL 2.1 +1ms
licenses::parser had a 0% match for LGPL 3.0 +0ms
licenses::parser had a 97.05882352941177% match for MIT +0ms
licenses::parser had a 0.1314060446780552% match for MPL +1ms
licenses::parser had a 0% match for MPL 2.0 +0ms
licenses::parser had a 0.6756756756756757% match for Python 2.0 +0ms
licenses::parser had a 32.5% match for UNLICENSE +0ms
licenses::parser had a 0% match for WTFPL +0ms
licenses::parser had a 0% match for Beerware +0ms
licenses::parser had a 0% match for CDDL 1.0 +1ms
licenses::parser had a 0.23696682464454977% match for NASA 1.3 +0ms
licenses::parser had a 0% match for zlib/libpng +0ms
licenses::content license file scan resulted in MIT as matching license +391ms
licenses::parser normalized MIT to MIT using the "direct match" method +1ms
licenses::github extracted MIT from MIT-LICENSE.txt +81ms
licenses::parse parsing with github was successful +249ms
Licenses information:
nomnom@~1.6.2 : MIT
Found a module that is incorrectly or not detected at all but does
have a valid license? Please report this at:
https://github.com/3rd-Eden/licenses/issues/new
So we can improve the parsing algorithm and yield better results.
This should be now. There was a bug in my npm-registry
module which incorrectly reduced the versions to a single object which caused it to only contain 1 tag (latest) and 1 version. This been fixed in the latest release, in addition to that it's now correctly scanning the devDependencies
object, which has been fixed in shrinkwrap
I've got it listed in my
devDependencies
but doesn't come up with a license.