Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
npm-publish-date
Advanced tools
Installing globally
npm i -g npm-publish-date
yarn global add npm-publish-date
You can also use npx npm-publish-date <command>
or yarn create npm-publish-date <command>
to run the CLI just once.
List the publish date of installed packages.
# Syntax:
# npd list [packages...] [options]
# Arguments:
# [packages...] ➡️ Package names to filter (without scope and version).
# Options:
# -a or --all ➡️ Show the entire package tree.
# -d or --depth <depth> ➡️ Filter packages using its depth in the package tree.
# -j or --json ➡️ Return data in JSON format.
# Example:
npd list express --all
See the publish date of any package.
# Syntax:
# npd view [packages...] [options]
# Arguments:
# [packages...] ➡️ Package names in the format: @scope/package@version
# Options:
# -a or --all ➡️ Show the entire package tree.
# -d or --depth <depth> ➡️ Filter packages using their depth in the package tree.
# -j or --json ➡️ Return data in JSON format.
# Example:
npd view react axios@latest redux@4.1.2 --all
Validate packages publish date.
# Syntax:
# npd validate [packages...] [options]
# Arguments:
# [packages...] ➡️ Package names in the format: @scope/package@version
# Options:
# -m or --min-days <minDays> ➡️ Minimum days elapsed since package publication.
# -a or --all ➡️ Validate the entire package tree.
# -d or --depth <depth> ➡️ Filter packages using their depth in the package tree.
# -j or --json ➡️ Return data in JSON format.
# Example:
npd validate eslint redux@latest --all --min-days 2
In October and November of 2021 three very popular NPM packages with millions of downloads were published with embedded malware. Infected computers had all the secrets and keys stolen by the malicious code executed with a simple npm install
.
The good news is that this type of problem usually resolves itself within hours. The bad news is that hackers will likely do the same again.
This library was created to protect us from getting hacked while installing NPM packages. Just validating the publish date is not the best protection strategy, but it can save our accounts.
Click in the links to see more about:
Luan Eduardo da Costa | Follow me on Linkedin
1.0.0 - DATE_HERE
First release.
FAQs
See the publish date of NPM packages
We found that npm-publish-date demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.