
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
@gunshi/definition
Advanced tools
@gunshi/definitionutilities for gunshi command definition
This package exports the bellow APIs and types.
define: A function to define a command.lazy: A function to lazily load a command.Command, LazyCommand, etc.[!TIP] The APIs and type definitions available in this package are the same as those in the
gunshi/definitionentry in thegunshipackage. This package is smaller in file size than thegunshipackage, making it suitable for use when you want to reduce the size of thenode_modulesin your command you are creating.
# npm
npm install --save @gunshi/definition
## pnpm
pnpm add @gunshi/definition
## yarn
yarn add @gunshi/definition
## deno
deno add jsr:@gunshi/definition
## bun
bun add @gunshi/definition
You can define the gunshi command as JavaScript module with using define, defineWithTypes, lazy and lazyWithTypes
The bellow example case which is using define:
import { define } from '@gunshi/definition'
/**
* define `say` command as javascript module
*/
export default define({
name: 'say',
args: {
say: {
type: 'string',
description: 'say something',
default: 'hello!'
}
},
run: ctx => {
return `You said: ${ctx.values.say}`
}
})
About details, See the below official docs sections:
FAQs
utilities for gunshi command definition
The npm package @gunshi/definition receives a total of 30 weekly downloads. As such, @gunshi/definition popularity was classified as not popular.
We found that @gunshi/definition demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.