Skip to content

🚩 flagParser in its v0.0.1 which parses flags for you.

Notifications You must be signed in to change notification settings

imabp/flagparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Flagparser

We are building a feature-rich flag parser.

If you are new to flag parsing. Check the following below:

install packages

npm install

Build and run parser

npm run build
node build/src/index.js -p hello -i world

-p and -h are flags.

Value of flag p is hello Value of flag h is world

Local run

To run the project locally.

  • Clone the repo: git clone https://git clone https://github.com/imabp/flagparser.git
  • Intall packages: npm install
  • Run the project: npm run dev -- -exampleFlag helloworld
  • Expected Output { '-exampleFlag': 'helloworld' }

Development commands

  • npx ts-node src/index.ts -exampleFlag helloworld to run on local
  • npm run watch to continuously watch your code
  • npm run lint to check your code is clean from error & warnings
  • npm run fix to fix errors & warnings
Structure
.
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ README.md
β”œβ”€β”€ .eslintrc.json
β”œβ”€β”€ .prettierrc.js
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .eslintignore
└── src
    β”œβ”€β”€ index.ts
    β”œβ”€β”€ type.ts

About

🚩 flagParser in its v0.0.1 which parses flags for you.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published