pnpm
npkill
Our great sponsors
pnpm | npkill | |
---|---|---|
94 | 22 | |
27,562 | 7,932 | |
1.8% | 1.4% | |
9.8 | 4.9 | |
4 days ago | 1 day ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pnpm
- Pnpm 9
-
Understanding Dependencies in Programming
Node.js manages dependencies using package managers like npm (Node Package Manager), yarn, and pnpm. npm comes pre-installed with Node.js and allows you to install and uninstall Node.js packages. It uses a package.json file to keep track of which packages your project depends on. Yarn and Pnpm are alternative package managers that aim to improve on npm in various ways, such as improved performance and better lock file format.
-
Manage project dependencies correctly
Use pnpm - This is just one recommendation, but it's too big of a topic to discuss here.
- Bun 1.1
-
Using pnpm with the GitLab package registry in GitLab CI
In this blog post, I explain how to use pnpm in GitLab CI and how to authenticate with a private GitLab package registry.
-
Unit Testing in Node.js and TypeScript: A Comprehensive Guide with Jest Integration
A package manager such as npm, Yarn, or pnpm. A package manager is a tool that helps you manage the dependencies of your project. You can use any of these package managers to install Jest and other packages.
-
Understanding Redux: A Practical Guide to State Management
Installation: Install Redux and React-Redux using npm or yarn.(you can try pnpm too!)
-
Effective nodejs version management for the busy developer
I also recommend using pnpm as a package manager, it's faster and more efficient than npm or yarn with great capabilities concerning monorepo setup. On recent nodejs versions (v16.13+), you can install it easily with:
- [email protected] is out!
-
.dockerignore being ignored by docker-compose? no space left on device
FROM node:21-alpine AS base FROM base AS builder Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat RUN apk update Set working directory WORKDIR /app Install pnpm with corepack RUN corepack enable && corepack prepare pnpm@latest --activate Enable pnpm add --global on Alpine Linux by setting home location environment variable to a location already in $PATH https://github.com/pnpm/pnpm/issues/784#issuecomment-1518582235 ENV PNPM_HOME=/usr/local/bin RUN pnpm install turbo --global COPY . . RUN turbo prune web --docker Add lockfile and package.json's of isolated subworkspace FROM base AS installer RUN apk add --no-cache libc6-compat RUN apk update WORKDIR /app First install the dependencies (as they change less often) COPY .gitignore .gitignore COPY --from=builder /app/out/json/ . COPY --from=builder /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml RUN pnpm install Build the project COPY --from=builder /app/out/full/ . RUN pnpm turbo run build --filter=web FROM base AS runner WORKDIR /app Don't run production as root RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs USER nextjs COPY --from=installer /app/apps/web/next.config.js . COPY --from=installer /app/apps/web/package.json . Automatically leverage output traces to reduce image size https://nextjs.org/docs/advanced-features/output-file-tracing COPY --from=installer --chown=nextjs:nodejs /app/apps/web/.next/standalone ./ COPY --from=installer --chown=nextjs:nodejs /app/apps/web/.next/static ./apps/web/.next/static COPY --from=installer --chown=nextjs:nodejs /app/apps/web/public ./apps/web/public CMD node apps/web/server.js
npkill
-
Ask HN: What apps have you created for your own use?
I initially created Npkill (https://npkill.js.org) for my own use because as a web developer I was always running out of disk space. When we launched it quickly became popular because it seems that not only we had that problem and today it is the most popular tool for that purpose.
Another one I launched was Pill Reminder (https://zaldih.github.io/pill-reminder/). If you are taking something for a cold or medical treatment it allows you to easily swipe and note down when you have taken your medication and lets you know when you are due to take it next.
ScrollTabs (https://github.com/zaldih/scrolltabs-extension) was born so soon after I migrated from chrome to firefox years ago and I missed being able to switch between tabs with the mouse scroll.
+ many others that I would like to prepare and make public for the future.
- Script to delete ALL Node_modules Folders in the Current Directory Recursively
-
how to manage node modules in every proj?
Just delete them after you are done, you can try https://www.npmjs.com/package/npkill
- NPKILL 0.11.1 released! Say goodbye to all those unused and heavy node_modules that take up precious space in seconds. Now faster.
- π NPKILL 0.11.1 released! π Say goodbye to all those unused and heavy node_modules that take up precious space in seconds. Now faster.
- Npkill β Find and remove old and heavy node_modules folders
- Ncdu β NCurses Disk Usage
-
I wrote a script which goes through folders containing NodeJS projects and deletes the disk space consuming node_modules from them, to free up space from projects you're not using.
There's npkill already
-
Delete unused node_modules in a second and enjoy some free space!
I found a cool tool that helps exactly for this scenario, it's called npkill and you can find it on npm.js.
-
Identifique e apague todas node_modules com NP Kill
ReferΓͺncia: https://www.npmjs.com/package/npkill
What are some alternatives?
nx - Smart Monorepos Β· Fast CI
localtunnel - expose yourself
lerna - :dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
gtop - System monitoring dashboard for terminal
berry - π¦π Active development trunk for Yarn β
genshin-optimizer - An Artifact optimizer for Genshin Impact.
yarn - The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
atmo - :heavy_check_mark: Mock data for your prototypes and demos. Remote deployments to Zeit now.
deno - A modern runtime for JavaScript and TypeScript.
carbon-now-cli - π¨ Beautiful images of your code β from right inside your terminal.
npm
npm-check-updates - Find newer versions of package dependencies than what your package.json allows