PLSARGS
😎 Another Argument Parser: But it's supports quotes!
Supported Quote Types
""
''
``
Or normal text without spaces..
Basic Usage Examples
import { plsParseArgs } from "plsargs";
const plsParse = require("plsargs").plsParseArgs;
let args = plsParse(`"hello world" 'nice world' withoutQuotes --argumentWithValue valueMoment --argumentWithValue2 "cool right?" --argumentWithoutValue`);
console.log(args.has("argumentWithoutValue"));
console.log(args.get("argumentWithoutValue"));
console.log(args.get("argumentWithValue"));
console.log(args.get("argumentWithValue2"));
console.log(args._[0]);
console.log(args._[1]);
console.log(args._[2]);
Last updates:
- Now supports down to
ES5
! args.clone()
now you can clone Results!args.has(string|number)
args has now supports checking keyless data.args.get(string|number)
args get now supports getting from keyless data.