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

codep-cli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codep-cli

Copy your frontend dependencies directly into your assets

  • 1.1.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

CoDep CLI

Copy your frontend dependencies directly into your assets.

Features

  • Fast
  • Creating non-existent output directories
  • User-friendly reporting

Install

npm i -D codep-cli

Usage

codep <outDir> [options]

For local installation usage:

npx codep "assets/vendor" --exclude "jquery,modernizr"

Or via package.json scripts:

{
  "scripts": {
    "vendor": "codep assets/vendor --exclude jquery,modernizr"
  }
}

Then run npm run vendor through your CLI.

Options

Please run npx codep --help to see available options:

$ npx codep --help

Usage
  $ codep <outDir> [options]

Examples
  # Copy dependencies with default options
  $ codep public/assets

  # Copy dependencies to public/assets folder except jquery and modernizr
  $ codep public/assets --exclude jquery,modernizr

Options
  -s, --source           Specify the node_modules source path
  -p, --pkg              Specify the package.json path
  -k, --keepDist         Keep the dist folder to exist, if any.
                         If "true" the output will be "pkg/dist", default "false"
  -e, --exclude          Specify the name of the dependencies you don\'t want to copy, e.g. "bootstrap,modernizr"
  -d, --devDependencies  Should you need to grab devDependencies as well?
  --ext                  Only copied files with the specified extension, e.g. "js,ts"
  -o, --overwrite        Do you want to overwrite existing dependencies in the <outDir>?

<outDir>  Specify an output folder for all copied files
  • CoDep

Keywords

FAQs

Package last updated on 16 Sep 2021

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