{"_id":"@arucraft2022/nd6","name":"@arucraft2022/nd6","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arucraft2022/nd6","version":"1.0.0","description":"Roll N dice from the command line","type":"commonjs","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"bin":{"nd6":"dist/cli.js"},"scripts":{"build":"tsc -p tsconfig.json","test":"npm run build && node --test test/*.test.js","prepublishOnly":"npm test"},"keywords":["dice","cli","npx","typescript"],"author":{"name":"arucraft2022","email":"arucraft2022@gmail.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/arucraft2022/dice.git"},"bugs":{"url":"https://github.com/arucraft2022/dice/issues"},"homepage":"https://github.com/arucraft2022/dice#readme","publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^25.8.0","typescript":"^6.0.3"},"_id":"@arucraft2022/nd6@1.0.0","gitHead":"fd73a851ebfa888d0ddaa2492fbeb15bafc5f75b","_nodeVersion":"24.5.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-OlYq12h0CyPZ0mDYnpDH5ElSzPCWPV6mMN04OCOGJLyvWGwSdvig2IMKXh3c+Ieu7W5bK/IS090hYtagOyoxEQ==","shasum":"ac456cb3457136c23f10490fcb585e876690a5dd","tarball":"https://registry.npmjs.org/@arucraft2022/nd6/-/nd6-1.0.0.tgz","fileCount":8,"unpackedSize":12666,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC3Ot0DuIlStCtR7k57zEfZoNVPSJ1LAUOutJ6FDVv86wIhAMR2HOMEJUp8fzBuFghbhCfnhtZoBk7lpaV8w59tP5xT"}]},"_npmUser":{"name":"arucraft2022","email":"arucraft2022@gmail.com"},"directories":{},"maintainers":[{"name":"arucraft2022","email":"arucraft2022@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nd6_1.0.0_1778984331050_0.9875201087376306"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-17T02:18:50.940Z","1.0.0":"2026-05-17T02:18:51.204Z","modified":"2026-05-17T02:18:51.412Z"},"maintainers":[{"name":"arucraft2022","email":"arucraft2022@gmail.com"}],"description":"Roll N dice from the command line","homepage":"https://github.com/arucraft2022/dice#readme","keywords":["dice","cli","npx","typescript"],"repository":{"type":"git","url":"git+https://github.com/arucraft2022/dice.git"},"author":{"name":"arucraft2022","email":"arucraft2022@gmail.com"},"bugs":{"url":"https://github.com/arucraft2022/dice/issues"},"license":"ISC","readme":"# nd6 — Specification\n\n[日本語版](README.ja.md)\n\n## Overview\n\nA command-line tool that rolls N six-sided dice.\n\nTemporary execution without installation:\n\n```bash\nnpx @arucraft2022/nd6 <number> [options]\n```\n\nAfter installation, run:\n\n```bash\nnd6 <number> [options]\n```\n\n---\n\n## Command behavior\n\n| Command | Behavior |\n|---|---|\n| `npx @arucraft2022/nd6` | Run without installation |\n| `nd6` | Show help in English |\n| `nd6 help` | Show help in English |\n| `nd6 help --ja` | Show help in Japanese |\n| `nd6 <1-9>` | Roll and display N dice |\n| `nd6 <0 or less / 10 or more / text>` | Show an error |\n\nThe installed executable name remains `nd6`.\n\n---\n\n## Options\n\n| Option | Description |\n|---|---|\n| `--label` | Show a label under each die |\n| `--art` | Show emoji dice (⚀-⚅) |\n| `--art-box` | Show boxed text dice |\n| `--art --label` | Emoji dice with labels |\n| `--art-box --label` | Boxed text dice with labels |\n| `--art --art-box` | Error: conflicting options |\n| `--ja` | Only valid for help output. Ignored when rolling dice |\n\n---\n\n## Output examples\n\n### Default\n\n```\n3 1 5\n```\n\n### `--label`\n\n```\n3       1       5\nDice 1  Dice 2  Dice 3\n```\n\n### `--art`\n\n```\n⚂ ⚀ ⚄\n```\n\n### `--art --label`\n\n```\n⚂      ⚀      ⚄\nDice 1  Dice 2  Dice 3\n```\n\n### `--art-box --label`\n\n```\n┌─────┐  ┌─────┐  ┌─────┐\n│ ●   │  │  ●  │  │ ● ● │\n│  ●  │  │     │  │     │\n│   ● │  │  ●  │  │ ● ● │\n└─────┘  └─────┘  └─────┘\nDice 1   Dice 2   Dice 3\n```\n\n---\n\n## Error messages\n\n| Case | Message |\n|---|---|\n| 0 or less, 10 or more, or text input | `Error: Please specify a number between 1 and 9` |\n| Using `--art` and `--art-box` together | `Error: --art and --art-box cannot be used together` |\n\n- Error messages are always shown in English.\n- `--ja` does not affect error messages.\n\n---\n\n## Language support\n\n| Language | Option | Status |\n|---|---|---|\n| English | Default | Supported |\n| Japanese | `--ja` | Supported for help output only |\n| Others | Not yet supported | Can be extended later |\n\n---\n\n## Constraints\n\n- Only **1 to 9** dice are allowed.\n- `--art` and `--art-box` cannot be used together.\n- `--ja` is valid only for help output and is ignored for dice rolls.\n\n---\n\n## License\n\nThis project is released under the ISC License. See LICENSE for details.\n","readmeFilename":"README.md","_rev":"1-a55530af9fe60e589fab5e6ec8a36b1c"}