Calculate a package score of a npm package