npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

txn-cli

v0.1.1

Published

A new CLI generated with oclif

Downloads

388

Readme

txn-cli

A new CLI generated with oclif

oclif Version Downloads/week

Dev

npm run ncu -- -u # 升级包
npm install
npm run dev -- hello world
npm run dev -- hello friend -f oclif
npm run dev -- hello PEPE --from MEME
npm run prod -- hell world
npm run prod -- uuid
npm run ts-node ./test/hello.ts

Usage

$ npm install -g txn-cli
$ tx COMMAND
running command...
$ tx (--version)
txn-cli/0.1.1 win32-x64 node-v22.12.0
$ tx --help [COMMAND]
USAGE
  $ tx COMMAND
...
$ npm install -g txn-cli
$ tx COMMAND
running command...
$ tx (--version)
txn-cli/0.0.3 win32-x64 node-v20.16.0
$ tx --help [COMMAND]
USAGE
  $ tx COMMAND
...

Commands

tx binance st [PATH]

上传策略交易数据到arweave

USAGE
  $ tx binance st [PATH]

ARGUMENTS
  PATH  [default: .env] .env文件路径,需要请设置

DESCRIPTION
  上传策略交易数据到arweave

EXAMPLES
  $ tx binance st d:/.env

See code: src/commands/binance/st.ts

tx binance ticker SYMBOLS

从binance获取加密货币价格

USAGE
  $ tx binance ticker SYMBOLS [-p <value>]

ARGUMENTS
  SYMBOLS  需要查询的加密货币,英文逗号分隔

FLAGS
  -p, --proxy=<value>  设置http代理

DESCRIPTION
  从binance获取加密货币价格

EXAMPLES
  $ tx binance ticker "btcusdt,ethusdt"

See code: src/commands/binance/ticker.ts

tx bitget gt [PATH]

上传网格交易数据到arweave

USAGE
  $ tx bitget gt [PATH]

ARGUMENTS
  PATH  [default: .env] .env文件路径,需要请设置

DESCRIPTION
  上传网格交易数据到arweave

EXAMPLES
  $ tx bitget gt d:/.env

See code: src/commands/bitget/gt.ts

tx bitget ticker SYMBOLS

从bitget获取加密货币价格

USAGE
  $ tx bitget ticker SYMBOLS [-p <value>]

ARGUMENTS
  SYMBOLS  需要查询的symbol

FLAGS
  -p, --proxy=<value>  设置http代理

DESCRIPTION
  从bitget获取加密货币价格

EXAMPLES
  $ tx bitget ticker "btcusdt"

See code: src/commands/bitget/ticker.ts

tx hello PERSON

Say hello

USAGE
  $ tx hello PERSON -f <value>

ARGUMENTS
  PERSON  Person to say hello to

FLAGS
  -f, --from=<value>  (required) Who is saying hello

DESCRIPTION
  Say hello

EXAMPLES
  $ tx hello friend --from oclif
  hello friend from oclif! (./src/commands/hello/index.ts)

See code: src/commands/hello/index.ts

tx hello world

Say hello world

USAGE
  $ tx hello world

DESCRIPTION
  Say hello world

EXAMPLES
  $ tx hello world
  hello world! (./src/commands/hello/world.ts)

See code: src/commands/hello/world.ts

tx help [COMMAND]

Display help for tx.

USAGE
  $ tx help [COMMAND...] [-n]

ARGUMENTS
  COMMAND...  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for tx.

See code: @oclif/plugin-help

tx plugins

List installed plugins.

USAGE
  $ tx plugins [--json] [--core]

FLAGS
  --core  Show core plugins.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ tx plugins

See code: @oclif/plugin-plugins

tx plugins add PLUGIN

Installs a plugin into tx.

USAGE
  $ tx plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into tx.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the TX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the TX_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ tx plugins add

EXAMPLES
  Install a plugin from npm registry.

    $ tx plugins add myplugin

  Install a plugin from a github url.

    $ tx plugins add https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ tx plugins add someuser/someplugin

tx plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ tx plugins inspect PLUGIN...

ARGUMENTS
  PLUGIN...  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ tx plugins inspect myplugin

See code: @oclif/plugin-plugins

tx plugins install PLUGIN

Installs a plugin into tx.

USAGE
  $ tx plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into tx.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the TX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the TX_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ tx plugins add

EXAMPLES
  Install a plugin from npm registry.

    $ tx plugins install myplugin

  Install a plugin from a github url.

    $ tx plugins install https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ tx plugins install someuser/someplugin

See code: @oclif/plugin-plugins

tx plugins link PATH

Links a plugin into the CLI for development.

USAGE
  $ tx plugins link PATH [-h] [--install] [-v]

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help          Show CLI help.
  -v, --verbose
      --[no-]install  Install dependencies after linking the plugin.

DESCRIPTION
  Links a plugin into the CLI for development.

  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.


EXAMPLES
  $ tx plugins link myplugin

See code: @oclif/plugin-plugins

tx plugins remove [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx plugins remove [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins remove myplugin

tx plugins reset

Remove all user-installed and linked plugins.

USAGE
  $ tx plugins reset [--hard] [--reinstall]

FLAGS
  --hard       Delete node_modules and package manager related files in addition to uninstalling plugins.
  --reinstall  Reinstall all plugins after uninstalling.

See code: @oclif/plugin-plugins

tx plugins uninstall [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx plugins uninstall [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins uninstall myplugin

See code: @oclif/plugin-plugins

tx plugins unlink [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx plugins unlink [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins unlink myplugin

tx plugins update

Update installed plugins.

USAGE
  $ tx plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

See code: @oclif/plugin-plugins

tx solswap QTY

Solana代币swap

USAGE
  $ tx solswap QTY -e <value> -f <value> -p <value> -s <value> -t <value>

ARGUMENTS
  QTY  交换数量

FLAGS
  -e, --envPath=<value>
      (required) [default: d:/.env] dotenv文件路径,默认当前目录.env
      .env文件中需提供:
      - TXN_CLI_OKX_DEX_PROJECT_ID
      - TXN_CLI_OKX_DEX_API_PASSPHRASE
      - TXN_CLI_OKX_DEX_API_KEY
      - TXN_CLI_OKX_DEX_API_SECRET
      - 钱包私钥: TXN_CLI_SOL_PRIVATE_KEY
      - TXN_CLI_MYSQL_HOST
      - TXN_CLI_MYSQL_PASSWORD
      - TXN_CLI_MYSQL_USER
      - TXN_CLI_MYSQL_DATABASE
      - TXN_CLI_MYSQL_PORT

  -f, --fromTokenAddress=<value>
      (required) [default: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB] 源Token地址

  -p, --profitRate=<value>
      (required) [default: 0.58] 目标涨幅百分比,如 0.5 表示涨幅达到50%时卖出

  -s, --slippage=<value>
      (required) [default: 0.02] 滑点:0.01表示1%

  -t, --toTokenAddress=<value>
      (required) 目标Token地址

DESCRIPTION
  Solana代币swap

EXAMPLES
  $ tx solswap qty -f fromTokenAddress -t toTokenAddress

See code: src/commands/solswap/index.ts

tx solswap chk ENVPATH

检查交易状态并更新mysql

USAGE
  $ tx solswap chk ENVPATH

ARGUMENTS
  ENVPATH  [default: d:/.env] dotenv文件路径,默认当前目录.env

DESCRIPTION
  检查交易状态并更新mysql

See code: src/commands/solswap/chk.ts

tx time ms [FORMAT]

获取当前时间戳-毫秒

USAGE
  $ tx time ms [FORMAT]

ARGUMENTS
  FORMAT  [可选]指定时间,比如:2019-01-25

DESCRIPTION
  获取当前时间戳-毫秒

EXAMPLES
  $ tx time ms

See code: src/commands/time/ms.ts

tx ts

Unix Timestamp (milliseconds)

USAGE
  $ tx ts

DESCRIPTION
  Unix Timestamp (milliseconds)

See code: src/commands/ts.ts

tx uuid

生成uuid

USAGE
  $ tx uuid

DESCRIPTION
  生成uuid

See code: src/commands/uuid.ts

tx binance st [PATH]

上传策略交易数据到 arweave

USAGE
  $ tx binance st [PATH]

ARGUMENTS
  PATH  [default: .env] .env文件路径,需要请设置

DESCRIPTION
  上传策略交易数据到arweave

EXAMPLES
  $ tx binance st d:/.env

See code: src/commands/binance/st.ts

tx binance ticker SYMBOLS

从 binance 获取加密货币价格

USAGE
  $ tx binance ticker SYMBOLS [-p <value>]

ARGUMENTS
  SYMBOLS  需要查询的加密货币,英文逗号分隔

FLAGS
  -p, --proxy=<value>  设置http代理

DESCRIPTION
  从binance获取加密货币价格

EXAMPLES
  $ tx binance ticker "btcusdt,ethusdt"

See code: src/commands/binance/ticker.ts

tx bitget gt [PATH]

上传网格交易数据到 arweave

USAGE
  $ tx bitget gt [PATH]

ARGUMENTS
  PATH  [default: .env] .env文件路径,需要请设置

DESCRIPTION
  上传网格交易数据到arweave

EXAMPLES
  $ tx bitget gt d:/.env

See code: src/commands/bitget/gt.ts

tx bitget ticker SYMBOLS

从 bitget 获取加密货币价格

USAGE
  $ tx bitget ticker SYMBOLS [-p <value>]

ARGUMENTS
  SYMBOLS  需要查询的symbol

FLAGS
  -p, --proxy=<value>  设置http代理

DESCRIPTION
  从bitget获取加密货币价格

EXAMPLES
  $ tx bitget ticker "btcusdt"

See code: src/commands/bitget/ticker.ts

tx hello PERSON

Say hello

USAGE
  $ tx hello PERSON -f <value>

ARGUMENTS
  PERSON  Person to say hello to

FLAGS
  -f, --from=<value>  (required) Who is saying hello

DESCRIPTION
  Say hello

EXAMPLES
  $ tx hello friend --from oclif
  hello friend from oclif! (./src/commands/hello/index.ts)

See code: src/commands/hello/index.ts

tx hello world

Say hello world

USAGE
  $ tx hello world

DESCRIPTION
  Say hello world

EXAMPLES
  $ tx hello world
  hello world! (./src/commands/hello/world.ts)

See code: src/commands/hello/world.ts

tx help [COMMAND]

Display help for tx.

USAGE
  $ tx help [COMMAND...] [-n]

ARGUMENTS
  COMMAND...  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for tx.

See code: @oclif/plugin-help

tx plugins

List installed plugins.

USAGE
  $ tx plugins [--json] [--core]

FLAGS
  --core  Show core plugins.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ tx plugins

See code: @oclif/plugin-plugins

tx plugins add PLUGIN

Installs a plugin into tx.

USAGE
  $ tx plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into tx.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the TX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the TX_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ tx plugins add

EXAMPLES
  Install a plugin from npm registry.

    $ tx plugins add myplugin

  Install a plugin from a github url.

    $ tx plugins add https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ tx plugins add someuser/someplugin

tx plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ tx plugins inspect PLUGIN...

ARGUMENTS
  PLUGIN...  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ tx plugins inspect myplugin

See code: @oclif/plugin-plugins

tx plugins install PLUGIN

Installs a plugin into tx.

USAGE
  $ tx plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into tx.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the TX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the TX_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ tx plugins add

EXAMPLES
  Install a plugin from npm registry.

    $ tx plugins install myplugin

  Install a plugin from a github url.

    $ tx plugins install https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ tx plugins install someuser/someplugin

See code: @oclif/plugin-plugins

tx plugins link PATH

Links a plugin into the CLI for development.

USAGE
  $ tx plugins link PATH [-h] [--install] [-v]

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help          Show CLI help.
  -v, --verbose
      --[no-]install  Install dependencies after linking the plugin.

DESCRIPTION
  Links a plugin into the CLI for development.
  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.


EXAMPLES
  $ tx plugins link myplugin

See code: @oclif/plugin-plugins

tx plugins remove [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx plugins remove [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins remove myplugin

tx plugins reset

Remove all user-installed and linked plugins.

USAGE
  $ tx plugins reset [--hard] [--reinstall]

FLAGS
  --hard       Delete node_modules and package manager related files in addition to uninstalling plugins.
  --reinstall  Reinstall all plugins after uninstalling.

See code: @oclif/plugin-plugins

tx plugins uninstall [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx plugins uninstall [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins uninstall myplugin

See code: @oclif/plugin-plugins

tx plugins unlink [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx plugins unlink [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins unlink myplugin

tx plugins update

Update installed plugins.

USAGE
  $ tx plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

See code: @oclif/plugin-plugins

tx ts

Unix Timestamp (milliseconds)

USAGE
  $ tx ts

DESCRIPTION
  Unix Timestamp (milliseconds)

See code: src/commands/ts.ts

tx uuid

生成 uuid

USAGE
  $ tx uuid

DESCRIPTION
  生成uuid

See code: src/commands/uuid.ts