args-tokens 0.2.2 → 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.
- package/README.md +16 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,9 +126,7 @@ console.log(tokens)
|
|
|
126
126
|
// ]
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
##
|
|
130
|
-
|
|
131
|
-
### 💿 Installation
|
|
129
|
+
## 💿 Installation
|
|
132
130
|
|
|
133
131
|
```sh
|
|
134
132
|
# npm
|
|
@@ -141,10 +139,23 @@ yarn add args-tokens
|
|
|
141
139
|
pnpm add args-tokens
|
|
142
140
|
```
|
|
143
141
|
|
|
144
|
-
###
|
|
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
|
|
145
155
|
|
|
146
156
|
```js
|
|
147
|
-
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
|
|
148
159
|
|
|
149
160
|
const tokens = parseArgs(['--foo', 'bar', '-x', '--bar=baz'])
|
|
150
161
|
// do something with using tokens
|