Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suretnohq/deno-arguments
Simple CLI arguments parser for Deno — Learn Deno
https://github.com/suretnohq/deno-arguments
deno deno-arguments deno-arguments-parser learn-deno
Last synced: 6 days ago
JSON representation
Simple CLI arguments parser for Deno — Learn Deno
- Host: GitHub
- URL: https://github.com/suretnohq/deno-arguments
- Owner: SuretnoHQ
- License: mit
- Created: 2018-11-23T03:50:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T07:19:19.000Z (almost 6 years ago)
- Last Synced: 2024-10-27T07:51:19.048Z (24 days ago)
- Topics: deno, deno-arguments, deno-arguments-parser, learn-deno
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- 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