Socket
Book a DemoInstallSign in
Socket

@public-js/keep-updated

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@public-js/keep-updated

Hassle-free dependency updates

2.1.1
latest
Source
npmnpm
Version published
Weekly downloads
5
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

@public-js/keep-updated

Build Version Downloads Size

Codacy LGTM Codecov Code Climate

Hassle-free dependency updates

Installing

Add the package to your project by running:

npm i -D @public-js/keep-updated

Add the following array to your package.json:

"keepUpdated": []

Populate the array with desired packages either manually or by running npx @public-js/keep-updated add package1 package2.

Execute it directly:

npx @public-js/keep-updated update --audit-fix

or add the following to your root package.json file:

"scripts": {
  "keep-updated": "keep-updated update --audit-fix"
}

Run npx @public-js/keep-updated --help to find out about other options.

How does it work

The package will identify your preferred manager based on the lock-file, fetch all the dependencies listed in the keepUpdated (or keep-updated) array and install the latest desired versions of the listed packages.

Then all changes, except sorting, made to the package.json will be reverted retaining only lock-file changes.

You might want to include this package as an additional step to your CI pipeline e.g. prior to merging branches into main.

Resources

License

MIT, full license text. Read more about it on TLDRLegal.

FAQs

Package last updated on 25 Jun 2022

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.