iandotkelly / nlf

Node License Finder
MIT License
152 stars 41 forks source link

Allow repository as object #59

Open TooAngel opened 5 years ago

TooAngel commented 5 years ago

The package.json repository attribute can be provided as object of the form {type: 'git': url: 'https://github.com/npm/cli.git'} https://docs.npmjs.com/files/package.json

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.02%) to 95.426% when pulling 60c47131ce769c4c326776b125c0509b6303c991 on TooAngel:master into fdd5f9111515e2f4490068d05536ccc6311e3f2d on iandotkelly:master.

thom-nic commented 4 years ago

I hit this bug as well, it is triggered by lex-parser: https://github.com/zaach/lex-parser/blob/master/package.json#L9-L12

Confirmed this is spec for package.json format: https://nodejs.dev/learn/the-package-json-guide#repository