Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-pick-manifest

Package Overview
Dependencies
Maintainers
6
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-pick-manifest

Resolves a matching manifest from a package metadata document according to standard npm semver resolution rules.

  • 10.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.8M
decreased by-11.14%
Maintainers
6
Weekly downloads
 
Created

What is npm-pick-manifest?

The npm-pick-manifest package is designed to help users select a specific package version from a registry metadata object based on a desired version range. It is particularly useful for automating package selection tasks in package management and deployment scripts, ensuring that the most appropriate version of a package is selected according to semantic versioning rules.

What are npm-pick-manifest's main functionalities?

Selecting a package version

This feature allows users to input a package metadata object and a version range. The function then returns the metadata for the version that best matches the range according to semantic versioning. This is particularly useful for resolving dependencies in package management.

const pickManifest = require('npm-pick-manifest');
const metadata = {
  'name': 'some-package',
  'versions': {
    '1.0.0': {},
    '1.2.0': {},
    '2.0.0': {}
  }
};
const range = '^1.0.0';
const selected = pickManifest(metadata, range);
console.log(selected.version); // Outputs: '1.2.0'

Other packages similar to npm-pick-manifest

Keywords

FAQs

Package last updated on 26 Sep 2024

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc