New message! Facebook launches Yarn: an open-source JavaScript manager for speed
GuideFacebook just launched an open-source JavaScript package manager named Yarn, promising to be more reliable and faster than the installation of popular npm packages.
According to the work package you selected, the company said Yarn can reduce the installation time from several minutes to several seconds. Yarn is also compatible with the nom registry, but the package installation method is different. It uses lockfiles and a decisive installation algorithm to maintain the same node module (node_modules) directory structure for all users participating in a project, this helps reduce hard-to-track bugs and replicate on multiple machines.
Yarn is also designed to make installation faster and more reliable. It supports cache downloading of each package and parallel operations, and allows installation without Internet connection (if it has been installed before ). In addition, Yarn is committed to compatibility with npm and Bower workflows, allowing you to restrict authorization licenses for installation modules.
Facebook pointed out that it has selected a large number of projects that are widely used in npm, but encountered performance and security problems during internal application extension. Together with engineers from Exponent, Google, and Tilde, Yarn is created and tested on a large JavaScript framework so that it can be used for development by multiple people as much as possible.
The npm behind-the-scenes team pointed out in a blog article that it welcomed Yarn to join the open-source npm client camp. The public package of Yarn runs well, but the private package still has some problems and the development team is repairing them.
Yarn is Facebook's latest open-source project in 2016, it released a code library for creating AI robots, an easy-to-use tool, a React JavaScript library, and a wireless access platform (used to provide Internet access in areas with poor connectivity) or even a 360 ° camera configuration.
Because of its frequent contributions to the open-source business, the company is now one of the top 2nd open-source contribution organizations on GitHub, second only to the software giant Microsoft.
From: http://mt.sohu.com/20161012/n470087099.shtml
Address: http://www.linuxprobe.com/facebook-yarn-javascript.html