Attempts to normalize all the different ways people put license information in their package.json files.
var format = require('normalize-license'); var license = format(json);
There is also a "guessing" feature:
This will attempt to look into the
json.readme property to "Guess" the license.