Socket
Book a DemoInstallSign in
Socket

clone-kit

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

clone-kit

Clone assets from server or locally

1.3.1
latest
Source
npmnpm
Version published
Weekly downloads
15
-81.01%
Maintainers
1
Weekly downloads
 
Created
Source

Clone kit

Clone assets from server

Use case

  • Clone assets before running a project in development mode
  • Clone assets in build directory before deployment

Usage

Add clone kit configuration with name clone-kit.json at root of the project.

{
  // Custom http headers to clone the assets
  "headers": Object,

  // Clone assets only if not present (Default: false)
  "once": Boolean,

  // Required
  // List of files to be cloned
  "files": [
    {
      // Name of the asset
      "name": String,

      // Required
      // Url of the asset
      "src": Url,

      // Required
      // File path where asset need to be cloned
      "dst": String,

      // Custom http headers to clone this asset
      // Overrides "headers" declared above
      "headers": Object,

      // Clone this asset only if not present (Default: false)
      // Overrides "once" declared above
      "once": Boolean
    }
  ]
}

Example

clone-kit.json

{
  "files": [
    {
      "name": "jQuery",
      "src": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js",
      "dst": "example/folder1/jquery.js",
      "once": true
    },
    {
      "name": "Axios",
      "src": "https://cdnjs.cloudflare.com/ajax/libs/axios/0.27.2/axios.min.js",
      "dst": "example/folder2/axios.js"
    }
  ]
}
npx clone-kit

# or

npx clone-kit ./clone-kit-config-file.json

Logs

SymbolMeaning
Assets cloned/copied
~Assets reused
XError

FAQs

Package last updated on 15 Aug 2025

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.