
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
bandersnatch
Advanced tools
[](https://www.npmjs.com/package/bandersnatch) [](https://github.com/hongaar/bandersnatch/actions?query=workf
Super lightweight and friendly CLI framework for Node.js.
🚧 but not quite yet
yargs
& inquirer
It's built in TypeScript and while it's of course possible to write your app with JavaScript, you're missing out on some very handy type hints.
We don't have a generator, auto-updater and we don't make any decisions for you (apart from using inquirer for prompts). This makes bandersnatch pretty easy and intuitive to work with.
# Add dependency
yarn add bandersnatch
Now create a simple app echo.ts
:
import { program, command } from 'bandersnatch'
const echo = command('echo', 'Echo something in the terminal')
.argument('words', 'Say some kind words', { variadic: true })
.action(function(args) {
console.log(args.words.join(' '))
})
program()
.add(echo)
.run()
More examples in https://github.com/hongaar/bandersnatch/tree/master/examples
# Clone and install
git clone git@github.com:hongaar/bandersnatch.git
cd bandersnatch
yarn
# Run an example
yarn start examples/simple.ts
Work in progress
Inspired by Vorpal
FAQs
Simple TypeScript CLI / REPL framework
The npm package bandersnatch receives a total of 181 weekly downloads. As such, bandersnatch popularity was classified as not popular.
We found that bandersnatch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.