Today I Learned

hashrocket A Hashrocket project

Initialize A New JavaScript Project With Yarn

Yarn, like NPM, has a basic command for initializing a new JavaScript project.

$ yarn init

This will ask you a number of questions about your project like the name and what kind of license you want to use. In the end, it just creates a package.json file which can be used with yarn or npm.

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.