NodeToolSet is a set of useful command line utilities that can help Node.js developer life easier. Current it includes utility commands for Node.js and React Native. Your contribution are always welcome.
Built with BIG love from DayOne!
No installation is required. It's recommended to use npx
to uses the latest version.
For someone who really want to install the package manually:
[sudo] npm install -g nodetoolset
With npx
.
npx nodetoolset <command> ...
If you installed the tool using [sudo] npm install -g nodetoolset
. You can use:
nts <command> ...
All examples assume that you are using npx
but you can also use nts
.
Recursively remove all node_modules
directories in a certain directory
to free up your disk space.
npx nodetoolset node:remove-node_modules ~/my-projects
Rename React Native app.
npx nodetoolset rn:rename-app "My New App"
npx nodetoolset rn:rename-app "My New App" --dir ~/my-projects/my-rn-project --ios
Notes: It's recommended to check out Git codebase into new branch, run the command and test carefully.
Change React Native app bundle ID.
npx nodetoolset rn:rename-app "com.myorg.myapp"
npx nodetoolset rn:rename-app "com.myorg.myapp" --dir ~/my-projects/my-rn-project --ios
Detailed commandline documentation.
# Show all commands.
npx nodetoolset help
# View details of a specific command.
npx nodetoolset help node:remove-node_modules
npx nodetoolset help rn:rename-app