Today I Learned

hashrocket A Hashrocket project

`npm install` without Changing Directories

Today I learned, via this pull request to Tilex, about the --prefix flag to npm install. This could transform an installation script from this:

$ cd assets
$ npm install
$ cd ..

To this:

$ npm install --prefix assets

Hooray for less typing!

h/t Taylor Mock

See More #javascript TILs
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.