New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cortex-shrinkwrap

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cortex-shrinkwrap

Lock down the versions of a package's dependencies

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Cortex Shrinkwrap

NPM version Build Status

This command will lock down the versions of a package's dependencies and generate a cortex-shrinkwrap.json file in your package directory.

Install

npm install cortex-shrinkwrap -g

Usage

cortex shrinkwrap [--dev] [--async|--no-async] [--enable-prerelease]

See more info by:

cortex shrinkwrap -h
Usage: cortex shrinkwrap [--dev] [--async] [options]

Options:
  -v, --version         print version
  -h, --help    show help
  --dev, --no-dev       shrinkwrap devDependencies or not, disabled by default
  --async, --no-async   shrinkwrap asyncDependencies or not, enabled by default
  --enable-prerelease   shrinkwrap will accept pre-release version in dependency analyze, disable by default% 

API

Also this lib can be used in nodejs.

var shrinkwrap = require('cortex-shrinkwrap');

var sh = shrinkwrap(pkg, cache_root, options, function(err, shrinked) {
    // console.log(shrinked);
});

sh.on('ignoreDev', function(pkgName) {
  
});

sh.on('ignoreAsync', function(pkgName) {
  
});

pkg

Pakcage information stored in cortex.json.

Options

  • dev: whehter include devDependencies
  • async: whether incldue asyncDependencies
  • enablePrerelease: whether include prerelease version in shrinkwrap, default value is =false=

License

(The MIT License)

Copyright (c) 2014, Villa.Gao <jky239@gmail.com>;
All rights reserved.

Keywords

FAQs

Package last updated on 10 Jun 2014

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