Socket
Socket
Sign inDemoInstall

dep-shift

Package Overview
Dependencies
16
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dep-shift

Move a package.json package to and from dependency/devDependencies


Version published
Weekly downloads
2
Maintainers
1
Install size
626 kB
Created
Weekly downloads
 

Readme

Source

dep-shift

Move a package.json package to and from dependencies/devDependencies

A no thrills library that reads the line that you want to shift and move it into the other group without messing with file formatting that normal JSON.parse/stringify would.

Usage

With CLI

# defaults from devDependencies to dependencies
npx --yes dep-shift react
# from dependencies to devDependencies
npx --yes dep-shift react dependencies

Install it into your toolchain first

yarn add -D dep-shift
yarn dep-shift react

Use it programmatically

const depShift = require('dep-shift');

depShift(
  process.cwd(),
  'react',
  // from,
  // to,
);

FAQs

Last updated on 30 Sep 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc