Everyone talk about Yarn’s speed and reliability but no one mentions any of the below nice-to-know facts about Yarn.
1. Yarn Depends on npm
Well guess what? Yarn’s source code actually depends on npm to be present because it uses it to run it’s own npm run-scripts which help build the Yarn package itself:
2. Yarn Style
Surprise surprise, Yarn developers also use Flow extensively.
3. Built-In Spellcheck
Yarn is so much user-friendly that it’s developers added a functionality to automatically detect possible typos which are classic for the ‘dependencies’ clause.
Say we init a new npm module:
And then we deliberately add a typo for the dependencies clause as such:
Running Yarn will produce the following:
Nice huh? This is thanks to the following source code for Yarn that does it’s best to help you out when in need: