medikoo / memoizee

Complete memoize/cache solution for JavaScript
ISC License
1.73k stars 61 forks source link

Use directly binaries on package.json #68

Closed epayet closed 7 years ago

epayet commented 7 years ago

I find it clearer to use directly the binaries in the package.json scripts. You can do this according to: https://docs.npmjs.com/cli/run-script#description

Instead of doing this: node node_modules/tad/bin/tad we can do this: tad. Thanks to the node_modules/.bin folder. We can also reuse internal commands such as lint-medikoo

medikoo commented 7 years ago

@epayet can you confirm it'll work on Windows (?) I remember that there was a time when it didn't (hence all commands prefixed with node)

epayet commented 7 years ago

Sure good catch. I tried on Windows 7 with an old version of node (0.12.8) and it worked.

Here is a screenshot:

screen shot 2017-02-09 at 15 54 28
medikoo commented 7 years ago

Thank you!