Socket
Book a DemoInstallSign in
Socket

@gunshi/bone

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gunshi/bone

gunshi minimum

latest
Source
npmnpm
Version
0.27.5
Version published
Maintainers
1
Created
Source

@gunshi/bone

Version InstallSize JSR

gunshi minimum

This package exports the bellow APIs and types.

  • cli: The main CLI function to run the command, not included @gunshi/plugin-global and @gunshi/plugin-renderer built-in plugins.
  • some basic type definitions only.

[!TIP] The APIs and type definitions available in this package are the same as those in the gunshi/bone entry in the gunshi package. This package is smaller in file size than the gunshi package, making it suitable for use when you want to reduce the size of the node_modules in your cli application you are creating.

[!IMPORTANT] You cannot use the cli function in this entry to display the usage of the command with --help option. This entry point is provided to allow users to customize it completely, such as command usage rendering and plugin composition.

💿 Installation

# npm
npm install --save @gunshi/bone

## pnpm
pnpm add @gunshi/bone

## yarn
yarn add @gunshi/bone

## deno
deno add jsr:@gunshi/bone

## bun
bun add @gunshi/bone

🚀 Usage

import { cli } from 'gunshi/bone'
import global from '@gunshi/plugin-global'
import renderer from '@gunshi/plugin-renderer'
import i18n from '@gunshi/plugin-i18n'

const entry = ctx => {
  // entry logic ...
}

await cli(process.argv.slice(2), entry, {
  // ...
  plugins: [
    global(),
    renderer(),
    i18n({
      // plugin options ...
    })
  ]
})

©️ License

MIT

Keywords

gunshi

FAQs

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