Add more stuff.

This commit is contained in:
Rico Sta. Cruz 2014-08-04 09:54:34 +08:00
parent e07b88d02c
commit c03d0b74e3
2 changed files with 24 additions and 2 deletions

View File

@ -23,8 +23,6 @@ Here are some badges for open source projects.
[![Status](https://travis-ci.org/rstacruz/ento.svg?branch=master)](https://travis-ci.org/rstacruz/ento)
[![Status](https://travis-ci.org/USER/REPO.svg?branch=master)](https://travis-ci.org/USER/REPO)
### Versions
[![npm version](https://img.shields.io/npm/v/jquery.svg)](https://npmjs.org/package/jquery "View this project on npm")

24
minimist.md Normal file
View File

@ -0,0 +1,24 @@
---
title: minimist
layout: default
---
```js
var args = require('minimist')(process.argv.slice(2), {
string: 'lang',
boolean: 'pager',
alias: { h: 'help', v: 'version' }
});
// --lang xml --no-pager -h index.js package.json
args == {
lang: 'xml', pager: false,
h: true, help: true,
_: [ 'index.js', 'package.json' ]
}
```
### Reference
* https://www.npmjs.org/package/minimist
* https://github.com/substack/minimist