https://github.com/hibuno/deno-arguments
Simple CLI arguments parser for Deno — Learn Deno
https://github.com/hibuno/deno-arguments
deno deno-arguments deno-arguments-parser learn-deno
Last synced: about 1 month ago
JSON representation
Simple CLI arguments parser for Deno — Learn Deno
- Host: GitHub
- URL: https://github.com/hibuno/deno-arguments
- Owner: hibuno
- License: mit
- Created: 2018-11-23T03:50:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T07:19:19.000Z (over 7 years ago)
- Last Synced: 2026-05-03T19:40:15.020Z (about 2 months ago)
- Topics: deno, deno-arguments, deno-arguments-parser, learn-deno
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Arguments
Simple CLI arguments parser for Deno — Learn Deno
### Usage
Example code, create file **test.ts** and fill with below code.
```ts
import { args } from "deno"
import Arguments from "https://github.com/muhibbudins/deno-arguments/index.ts";
console.log(Arguments(args))
```
And then run :
```
$ deno test.ts variable --env=development -b boop --test=true --beep boop
$ > { variable: true, env: "development", b: "boop", test: "true", beep: "boop" }
```
### Related
- [Read File](https://github.com/muhibbudins/deno-readfile)
- [Watcher File](https://github.com/muhibbudins/deno-watcher)
- [Yaml Parser](https://github.com/muhibbudins/deno-yaml)
- [All Topic](https://github.com/topics/learn-deno)
### License
This project under MIT License