Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
/ nm Public archive

Manage your `node_modules` as a set of directories on disk.

License

Notifications You must be signed in to change notification settings

npm/nm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nm

Manage your node_modules as a set of directories on disk.

$ nm rm module-name
module-name removed
$ nm rm module-name
Error: ENOENT: no such file or directory, lstat 'node_modules/wrappyy'
$

Try it out with npx:

$ npx nm rm module-name

Description

This is a command line tool for doing physical operations on your node_modules with some minimal level of package.json and package-lock.json awareness.

Commands

rm

Remove from node-modules if it exists.

Planned options: -r remove and its transitive dependencies. -f -r remove and its transitive dependencies, even if they're also used by another module.

Planned Commands

These are not implemented yet.

ls

Would be what llmod outputs.

install/add

Add packages w/o installing anything else. Read registry auth from .npmrc (no nm login however, use npm for that).

--save

A suite of save option that can update package.json and package-lock.json

About

Manage your `node_modules` as a set of directories on disk.

Resources

License

Stars

Watchers

Forks

Packages

No packages published