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

deps-object

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deps-object

Transform dependencies Array into an Object

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-88.75%
Maintainers
1
Weekly downloads
 
Created
Source

deps-object

NPM version Build Status Coveralls Status Dependency Status

Transform dependencies Array into an Object

Install

npm install --save deps-object

Usage

import saveToDeps from 'deps-object';

saveToDeps(['ava', 'nyc@^6.0.0', 'rimraf@2.5.2'])
  .then(item => console.log(item));
  /* {
    ava: '^0.12.0',
    nyc: '^6.0.0',
    rimraf: '2.5.2'
  } */

API

saveToDeps(deps)

// saveToDeps :: Array[String] -> Promise Object`

Return a promise that resolves to dependencies object.

deps

Required
Type: Array[String]

Dependencies list. Specify dependency with @, otherwise result version will be latest one with ^ prefix.

License

MIT © Vladimir Starkov

FAQs

Package last updated on 10 Mar 2016

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