Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

codep-cli

Copy your frontend dependencies directly into your assets

1.1.5
unpublished
latest
Source
npmnpm
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

copy

FAQs

Package last updated on 07 Dec 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.