Skip to content

Commit c144a11

Browse files
committed
chore: ultraflag -> @bomb.sh/args
1 parent 5a4e14d commit c144a11

File tree

5 files changed

+24
-16
lines changed

5 files changed

+24
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ultraflag
1+
# @bomb.sh/args (fka `ultraflag`)
22

33
## 0.2.3
44

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# `ultraflag`
1+
# `@bomb.sh/args`
22

3-
A <1kB library for parsing CLI flags. Inspired by Deno's `std` [`flags`](https://github.com/denoland/deno_std/blob/main/flags/mod.ts) module.
3+
A <1kB library for parsing CLI flags. Inspired by Deno's `std/cli` [`parseArgs`](https://github.com/denoland/std/blob/main/cli/parse_args.ts) module.
44

55
### Features
66

@@ -17,7 +17,7 @@ A <1kB library for parsing CLI flags. Inspired by Deno's `std` [`flags`](https:/
1717
Basic usage does not require any configuration.
1818

1919
```js
20-
import { parse } from "ultraflag";
20+
import { parse } from "@bomb.sh/args";
2121

2222
// my-cli build --bundle -rf --a value --b=value --c 1
2323
const argv = process.argv.slice(2);
@@ -42,9 +42,13 @@ const args = parse(argv, {
4242
## Benchmarks
4343

4444
```
45-
mri x 1,650,986 ops/sec ±0.32% (97 runs sampled)
46-
ultraflag x 1,407,191 ops/sec ±0.38% (99 runs sampled)
47-
minimist x 383,506 ops/sec ±0.28% (99 runs sampled)
48-
node:util x 320,953 ops/sec ±0.35% (98 runs sampled)
49-
yargs-parser x 31,874 ops/sec ±1.32% (92 runs sampled)
45+
mri x 1,650,986 ops/sec ±0.32% (97 runs sampled)
46+
@bomb.sh/args x 1,407,191 ops/sec ±0.38% (99 runs sampled)
47+
minimist x 383,506 ops/sec ±0.28% (99 runs sampled)
48+
node:util x 320,953 ops/sec ±0.35% (98 runs sampled)
49+
yargs-parser x 31,874 ops/sec ±1.32% (92 runs sampled)
5050
```
51+
52+
## Acknowledgements
53+
54+
This package was previously published as `ultraflag` up until `v0.2.3`, when it was transferred to `@bomb.sh/args`.

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"name": "ultraflag",
2+
"name": "@bomb.sh/args",
3+
"publishConfig": {
4+
"access": "public",
5+
"provenance": true
6+
},
37
"type": "module",
48
"version": "0.2.3",
59
"types": "./dist/index.d.ts",
610
"repository": {
711
"type": "git",
8-
"url": "https://github.com/natemoo-re/ultraflag"
12+
"url": "https://github.com/bombshell-dev/args"
913
},
1014
"bugs": {
11-
"url": "https://github.com/natemoo-re/ultraflag/issues"
15+
"url": "https://github.com/bombshell-dev/args/issues"
1216
},
13-
"homepage": "https://github.com/natemoo-re/ultraflag#README",
17+
"homepage": "https://github.com/bombshell-dev/args#README",
1418
"scripts": {
1519
"build": "node scripts/build.js && tsc -p .",
1620
"lint": "prettier \"**/*.{js,ts,md}\"",
@@ -38,7 +42,7 @@
3842
"author": {
3943
"name": "Nate Moore",
4044
"email": "[email protected]",
41-
"url": "https://twitter.com/n_moore"
45+
"url": "https://natemoo.re"
4246
},
4347
"license": "MIT",
4448
"volta": {

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import colors from 'chalk';
12
import { build } from "esbuild";
23
import { gzipSizeFromFileSync } from 'gzip-size';
34
import bytes from 'pretty-bytes';
4-
import colors from 'chalk';
55

66
async function run() {
77
const files = ['src/index.ts'];

test/flags.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { parse } from "../src";
21
import { describe, expect, it, test } from "vitest";
2+
import { parse } from "../src";
33

44
describe("flags", () => {
55
it("a b c", () => {

0 commit comments

Comments
 (0)