Improvements

This commit is contained in:
David Ralph
2019-04-15 08:56:22 +01:00
parent e3ff5bc0b5
commit 71b65619a7
7 changed files with 12 additions and 17 deletions

View File

@@ -1,4 +1,3 @@
The MIT License (MIT)
Copyright (c) 2019-present Wessel "wesselgame" T

View File

@@ -1,7 +1,7 @@
# larg
> A lightweight Node.js argument parser which can be used in various ways.
> [GitHub](https://www.github.com/PassTheWessel/larg) **|** [NPM](https://www.npmjs.com/package/larg)
> [GitHub](https://github.com/PassTheWessel/larg) **|** [NPM](https://npmjs.com/package/larg)
## Installing
```sh
@@ -25,6 +25,3 @@ $ node test.js -x 3 -y 4 -ab --beep=boop foo bar
b: true,
beep: 'boop' }
```
### Why should I use larg?
Larg is very lightweight (3.45kb total, 569b minified in **dist/larg.min.js**) comparing to other packages such as optimist and minimist.

1
larg.d.ts vendored
View File

@@ -1,4 +1,3 @@
// Typings Componenet for package: larg
declare function larg(args?: any[]): any;
export = larg;

View File

@@ -1,6 +1,6 @@
{
"name": "larg",
"version": "0.0.3",
"version": "0.0.4",
"description": "👾 A very lightweight Node.js argument parser",
"author": "Wessel \"wesselgame\" T <discord@go2it.eu>",
"license": "MIT",
@@ -10,13 +10,13 @@
"LICENSE"
],
"bugs": {
"url": "https://www.github.com/PassTheWessel/larg/issues"
"url": "https://github.com/PassTheWessel/larg/issues"
},
"homepage": "https://www.github.com/PassTheWessel/larg#readme",
"homepage": "https://github.com/PassTheWessel/larg#readme",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/PassTheWessel/larg"
"url": "https://github.com/PassTheWessel/larg"
},
"scripts": {
"test": "node test.js"

View File

@@ -1 +1 @@
console.log( require( './' )( process.argv.slice( 2 ) ) )
console.log(require('./')(process.argv.slice(2)));