
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
@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 0 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.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.