Hacker News new | past | comments | ask | show | jobs | submit login

I've made two npm utilities to check for licenses like this:

`npx check-licenses`: lean library, requires npm+package-lock.json

`npx legally`: checks the filesystem under node_modules, might overfetch license files that are unused

Example output:

   ┌────────────────────────────────────────────────────────────────────────┐
   │                                                                        │
   │                            Licenses (1326)                             │
   │                                                                        │
   ├──────────────────────────────────────────┬──────────────┬──────────────┤
   │ License                                  │ Number       │ %            │
   ├──────────────────────────────────────────┼──────────────┼──────────────┤
   │ MIT                                      │ 1069         │ 80           │
   │ ISC                                      │ 65           │ 4            │
   │ BSD 2 Clause                             │ 44           │ 3            │
   │ CC0                                      │ 40           │ 3            │
   │ Apache 2.0                               │ 37           │ 2            │
   │ BSD 3 Clause                             │ 36           │ 2            │
   │ W3C                                      │ 19           │ 1            │
   │ Unlicense                                │ 3            │ 0            │
   │ 0BSD                                     │ 2            │ 0            │
   │ GPL 2.0                                  │ 2            │ 0            │
   │ AFL 2.1                                  │ 1            │ 0            │
   │ CC BY 4.0                                │ 1            │ 0            │
   │ CC-BY                                    │ 1            │ 0            │
   │ MPL 1.1                                  │ 1            │ 0            │
   │ MPL 2.0                                  │ 1            │ 0            │
   │ ODC By 1.0                               │ 1            │ 0            │
   │ Python 2.0                               │ 1            │ 0            │
   │ Ruby                                     │ 1            │ 0            │
   │ WTFPL                                    │ 1            │ 0            │
   └──────────────────────────────────────────┴──────────────┴──────────────┘



For the lazy:

- https://www.npmjs.com/package/check-licenses

- https://www.npmjs.com/package/legally

This feels like the kind of thing that might make for a good (paid?) app on the github marketplace francisco :)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: