Nightingale Posing Mischievously

    @appsweet-co/npm-carbon
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.13 • Public • Published

    @appsweet-co/npm-carbon

    Copy npm packages and all their versions from one registry to another


    Latest Build Documentation License: MIT

    Based on goodeggs/npm-copy and dperuo/npm-carbon.

    Use this command line tool to make a "carbon copy" of any npm package and all its published versions.

    Install

    No installation needed. Use @appsweet-co/npm-carbon directly from npm using the npx command.

    npx @appsweet-co/npm-carbon <OPTIONS>

    Usage

    Run --help for a full list of commands.

    npx @appsweet-co/npm-carbon --help

    Authenticate Using Auth Tokens

    npx @appsweet-co/npm-carbon \
      --src https://registry.npmjs.org \
      --dest https://registry.npmjs.org \
      --srcToken w7ikVizKsyP98uyBS6 \
      --destToken JmNMqitWbnOex3py9A \
      packageA [packageB...]

    Authenticate Using Username, Password, and Email

    npx @appsweet-co/npm-carbon \
      --src https://registry.npmjs.org \
      --srcUser helloworld \
      --srcPassword https://registry.npmjs.org \
      --srcEmail helloworld@company.com \
      --dest https://registry.npmjs.org \
      --destUser helloworld \
      --destPassword gUbcneqpbxC8 \
      --destEmail helloworld@company.com \
      packageA [packageB...]

    Modify Package Prefix

    Modify the package prefix using the --srcprefix and --destPrefix flags.

    npx @appsweet-co/npm-carbon \
      --srcPrefix @company \
      --destPrefix @company \
      packageA [packageB...]

    ⚠️ WARNING: List packages without their prefix when using the prefix flags. Example: @foo/packageA becomes just packageA.

    -----------------------------------------------------

    Contributing

    Contributions, issues and feature requests are welcome! Feel free to check issues page.

    Working With the @appsweet-co/npm-carbon Repo

    Install

    Clone this repo to your local machine and install dependencies.

    git clone https://github.com/appsweet-co/npm-carbon.git
    cd npm-carbon/
    npm install

    Usage

    Use the start command to compile TypeScript and watch for changes.

    npm start

    Run the local JavaScript file directly to check your changes.

    node ./bin/index.js <OPTIONS>

    Run Tests

    Run the full test suite using the test command.

    npm run test

    Submit Your Pull Request

    Always submit your Pull Request against main.

    📝 License

    Copyright ©2022 Appsweet.co. This project is MIT licensed.

    Keywords

    none

    Install

    npm i @appsweet-co/npm-carbon

    DownloadsWeekly Downloads

    13

    Version

    1.0.13

    License

    MIT

    Unpacked Size

    29.8 kB

    Total Files

    31

    Last publish

    Collaborators

    • dperuo