Implement npm.range