🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@orderly.network/codemod

Package Overview
Dependencies
Maintainers
5
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orderly.network/codemod

`orderly-codemod` is a command-line tool to help you migrate the package import and `OrderlyAppProvider` configuration from v1 to v2

latest
npmnpm
Version
1.6.2
Version published
Maintainers
5
Created
Source

Orderly Codemod

orderly-codemod is a command-line tool to help you migrate the package import and OrderlyAppProvider configuration from v1 to v2

Usage

npx @orderly.network/codemod [OPTION] PATH
  • PATH: Specifies the file or directory path to be transformed (required).

Options

  • -p, --parser <string>
    Specifies the parser for source files. Supported options:

    • babel
    • babylon
    • flow
    • ts
    • tsx

    Default: tsx.

    Please note that when using TypeScript, you need to use the tsx parser; otherwise, the codemod cannot be correctly applied!

  • --ext, --extensions <string>
    Specifies file extensions to transform, with multiple extensions separated by commas. Default: tsx.

  • -i, --ignore <string>
    Specifies a glob pattern to ignore files. Default: node_modules.

Examples

  • Scan all .tsx files in a specified directory with default settings:

    npx @orderly.network/codemod src/
    
  • Custom extensions:

    npx @orderly.network/codemod --extensions jsx src/
    
  • Ignore files in the dist folder:

    npx @orderly.network/codemod --ignore dist src/
    

Note: Applying a codemod may disrupt your existing code formatting, so don’t forget to run prettier and/or eslint after applying the codemod!

Help

Run the following command to display help information:

npx @orderly.network/codemod --help

Error Handling

If no file or directory path is provided, the tool will display an error message:

Error: You have to provide at least one file/directory to transform.

Keywords

orderly

FAQs

Package last updated on 02 Sep 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