Socket
Socket
Sign inDemoInstall

packages-update

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    packages-update

📦 A basic updater for packages, without any dependencies


Version published
Weekly downloads
88
increased by131.58%
Maintainers
1
Install size
18.2 kB
Created
Weekly downloads
 

Readme

Source

Packages Update

📦 A basic updater for packages, without any dependencies

Install

   npm i packages-update -D

Usage

npx npu


Update to latest version
   npx npu || npx npu --latest

   # prettier: ^1.4.2 ➜ ^2.8.1
   # ...
  • Get the default latest version for each package

Update to latest major version
   npx npu --major

   # prettier: ^1.4.2 ➜ ^2.8.1
   # ...
  • Get the highest version for each package, even if it is not the default latest

Update to latest minor version
   npx npu --minor

   # prettier: ^1.4.2 ➜ ^1.19.1
   # ...
  • Get the latest minor version for each package, before the next major version

Update to latest patch version
   npx npu --patch

   # prettier: ^1.4.2 ➜ ^1.4.4
   # ...
  • Get the latest patch version for each package, before the next minor version

Only lock current versions
   npx npu --lock

   # prettier: ^1.4.2 ➜ 1.4.2
   # ...
  • Just locks package versions, without checking versions or updating

Aliases
  • pu, npu, packages-update or npm-packages-update:

       npx pu
       npx npu
       npx packages-update
       npx npm-packages-update
    

Notes
  • When update packages, run npm i to install new versions 🚀
  • When lock packages, run npm ci to install the static versions from package-lock.json 🔒
  • This updater looks in package.json for devDependencies and dependencies 🔎
  • This updater doesn't search or update for tag versions (alpha, beta, rc, etc.) 👾

Credits
ContributorsGitHub
Authorwellwelwel

Keywords

FAQs

Last updated on 15 Dec 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc