args-tokens 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # args-tokens
2
2
 
3
3
  [![Version][npm-version-src]][npm-version-href]
4
+ [![JSR][jsr-src]][jsr-href]
4
5
  [![CI][ci-src]][ci-href]
5
6
 
6
7
  > [`parseArgs` tokens](https://nodejs.org/api/util.html#parseargs-tokens) compatibility and more high-performance parser
@@ -125,9 +126,7 @@ console.log(tokens)
125
126
  // ]
126
127
  ```
127
128
 
128
- ## 🚀 Usage
129
-
130
- ### 💿 Installation
129
+ ## 💿 Installation
131
130
 
132
131
  ```sh
133
132
  # npm
@@ -140,10 +139,23 @@ yarn add args-tokens
140
139
  pnpm add args-tokens
141
140
  ```
142
141
 
143
- ### 🍭 Codes
142
+ ### 🦕 Deno
143
+
144
+ ```sh
145
+ deno add jsr:@kazupon/args-tokens
146
+ ```
147
+
148
+ ### 🥟 Bun
149
+
150
+ ```sh
151
+ bun add args-tokens
152
+ ```
153
+
154
+ ## 🚀 Usage
144
155
 
145
156
  ```js
146
- import { parseArgs } from 'args-tokens'
157
+ import { parseArgs } from 'args-tokens' // for Node.js and Bun
158
+ // import { parseArgs } from 'jsr:@kazupon/args-tokens' // for Deno
147
159
 
148
160
  const tokens = parseArgs(['--foo', 'bar', '-x', '--bar=baz'])
149
161
  // do something with using tokens
@@ -196,5 +208,7 @@ This project is inspired by:
196
208
 
197
209
  [npm-version-src]: https://img.shields.io/npm/v/args-tokens?style=flat
198
210
  [npm-version-href]: https://npmjs.com/package/args-tokens
211
+ [jsr-src]: https://jsr.io/badges/@kazupon/args-tokens
212
+ [jsr-href]: https://jsr.io/@kazupon/args-tokens
199
213
  [ci-src]: https://github.com/kazupon/args-tokens/actions/workflows/ci.yml/badge.svg
200
214
  [ci-href]: https://github.com/kazupon/args-tokens/actions/workflows/ci.yml
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "args-tokens",
3
3
  "description": "parseArgs tokens compatibility and more high-performance parser",
4
- "version": "0.2.1",
4
+ "version": "0.2.3",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"