Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@ozgurg/package-json-refresher

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ozgurg/package-json-refresher

![Version](https://img.shields.io/github/package-json/v/ozgurg/package-json-refresher)

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

Version

Sometimes you may need to reset everything and reinstall all dependencies. package.json Refresher makes this process easier.

It does the following;

  • Delete "node_modules" and "package-lock.json".
  • Back up "package.json" in case something goes wrong.
  • Deletes and reinstall "dependencies" and "devDependencies".

Note: It does not install previous version of dependencies you use. Installs latest versions from the npm registry. If you have a specific reason to use old version of any dependency, you have been warned.

Install

npm i @ozgurg/package-json-refresher -g

Usage

cd path/to/where/package.json/is
refresh-package-json // or use "rpj"

License

License: MIT

TODO

  • Tests will be written.
  • Confirm prompt will be added, and will be bypassed with an argument.
  • [MAYBE] An argument to force to install previous version of dependencies instead of latest versions of them.

Keywords

package.json

FAQs

Package last updated on 27 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts