npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@andreypopp/pnpm

v0.51.1

Published

Fast, disk space efficient npm installs

Downloads

18

Readme

pnpm

npm version Status Windows build status Join the chat at https://gitter.im/pnpm/pnpm

Fast, disk space efficient npm installs

pnpm is a fast implementation of npm install. It is loosely based off ied.

asciicast

Read our contributing guide if you're looking to contribute.

Follow the pnpm Twitter account for updates.

Table of Contents

Background

pnpm maintains a flat storage of all your dependencies in ~/.pnpm-store. They are then linked wherever they're needed. This nets you the benefits of drastically less disk space usage, while keeping your node_modules clean. See store layout for an explanation.

=> - a link (also known as a hard link)
-> - a symlink (or junction on Windows)

~/.pnpm-store
   ├─ chalk/1.1.1/
   |  ├─ index.js
   |  └─ package.json
   ├─ ansi-styles/2.1.0/
   |  ├─ index.js
   |  └─ package.json
   └─ has-ansi/2.0.0/
      ├─ index.js
      └─ package.json
.
└─ node_modules/
   ├─ .resolutions/
   |   ├─ chalk/1.1.1/
   |   |  ├─ node_modules/
   |   |  |  ├─ chalk        -> ../package
   |   |  |  ├─ ansi-styles/ -> ../../ansi-styles/2.1.0/package
   |   |  |  └─ has-ansi/    -> ../../has-ansi/2.0.0/package
   |   |  └─ package
   |   |     ├─ index.js     => ~/.pnpm-store/chalk/1.1.1/index.js
   |   |     └─ package.json => ~/.pnpm-store/chalk/1.1.1/package.json
   |   ├─ has-ansi/2.0.0/
   |   |  ├─ node_modules/
   |   |  |  └─ has-ansi     -> ../package
   |   |  └─ package
   |   |     ├─ index.js     => ~/.pnpm-store/has-ansi/2.0.0/index.js
   |   |     └─ package.js   => ~/.pnpm-store/has-ansi/2.0.0/package.json
   |   └─ ansi-styles/2.1.0/
   |      ├─ node_modules/
   |      |  └─ ansi-styles  -> ../package
   |      └─ package
   |         ├─ index.js     => ~/.pnpm-store/ansi-styles/2.1.0/index.js
   |         └─ package.js   => ~/.pnpm-store/ansi-styles/2.1.0/package.json
   └─ chalk/                 -> ./.resolutions/chalk/1.1.1/package

Install

Install it via npm.

npm install -g pnpm

Do you wanna use pnpm on CI servers? See: Continuous Integration.

Usage

Use pnpm in place of npm. It overrides pnpm i, pnpm install and some other command, the rest will passthru to npm.

pnpm install lodash

For using the programmatic API, see: API.

Benchmark

pnpm is usually 10 times faster than npm and 30% faster than yarn. See this benchmark which compares the three package managers on different types of applications.

time npm i babel-preset-es2015 browserify chalk debug minimist mkdirp
    66.15 real        15.60 user         3.54 sys
time pnpm i babel-preset-es2015 browserify chalk debug minimist mkdirp
    11.04 real         6.85 user         2.85 sys

Prior art

Preview release

pnpm will stay in <1.0.0 until it's achieved feature parity with npm install. See roadmap for details.

License

MIT © Rico Sta. Cruz and contributors