TNS
VOXPOP
How has the recent turmoil within the OpenAI offices changed your plans to use GPT in a business process or product in 2024?
Increased uncertainty means we are more likely to evaluate alternative AI chatbots and LLMs.
0%
No change in plans, though we will keep an eye on the situation.
0%
With Sam Altman back in charge, we are more likely to go all-in with GPT and LLMs.
0%
What recent turmoil?
0%
Software Development

This Week in Numbers: Managing JavaScript Packages with npm and Yarn

Jun 9th, 2018 9:00am by
Featued image for: This Week in Numbers: Managing JavaScript Packages with npm and Yarn

This week we analyze more data from the Node.js Foundation‘s user survey. Almost three-quarters (73 percent) of survey respondents said they use a package manager. Npm was used by 60 percent and Yarn cited by 13 percent. Since Yarn sits on top of npm, in reality these respondents are referring to an interface or tool they actually use day-to-day. Yarn’s use rose 44 percent compared to last year’s study.

Is Yarn a better alternative to npm? That is up to you to decide. That being said, it is notable that Yarn users are much more likely to care about managing packages across multiple environments. When asked about the importance of managing different packages across multiple environments, 50 percent of Yarn users said it is important (8 on a scale of 1-10) in comparison to only 39 percent of npm respondents. It is noteworthy that respondents from Latin American and the Asia Pacific region were more likely to say multi-environment package managing is important.

Other Interesting Bits

We looked through the raw data provided by the Node.js Foundation and found two questions about JavaScript tooling that were not included as charts in its reports. The graphic below shows the charts we created about transpiler and modular bundler usage. The New Stack will use this data to support future reporting.

  • Transpilers convert code in one language into another. Sixty-nine percent of respondents use a transpiler. About twice as many use Babel as compared to TypeScript.
  • Modular bundlers compile small pieces of code into a more complex library or application. Seventy-seven percent of respondents use a modular bundler. Webpack is far ahead of any of the nearest competitors.

The Linux Foundation, which manages the Node.js Foundation, is a sponsor of The New Stack.

Feature image via Pixabay.

Group Created with Sketch.
TNS owner Insight Partners is an investor in: The New Stack.
THE NEW STACK UPDATE A newsletter digest of the week’s most important stories & analyses.