# noptd

> nopt with default values

Latest version **2.0.1** (published 2016-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install noptd
pnpm add noptd
yarn add noptd
bun add noptd
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2016-04-27 |
| First published | 2015-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Evan Lucas |
| Maintainers | eh, evanlucas |

## Links

- npm: https://www.npmjs.com/package/noptd
- Repository: https://github.com/evanlucas/noptd
- Issues: https://github.com/evanlucas/noptd/issues
- npm.io page: https://npm.io/package/noptd

## Dependencies (1)

- [nopt](https://npm.io/package/nopt.md) ~3.0.1

## Recent versions

- 2.0.1 (latest) — 2016-04-27
- 2.0.0 — 2015-11-03
- 1.0.0 — 2015-05-15

## README

# noptd

[![Build Status](https://travis-ci.org/evanlucas/noptd.svg)](https://travis-ci.org/evanlucas/noptd)
[![Coverage Status](https://coveralls.io/repos/evanlucas/noptd/badge.svg?branch=master&service=github)](https://coveralls.io/github/evanlucas/noptd?branch=master)

nopt with default values

*Note: noptd is only supported on iojs and node v4+. To use with an older
version of node, please use `noptd@1`.*

## Install

```bash
$ npm install --save noptd
```

## Example

```js
// test.js
var nopt = require('noptd')
var shortHand = { help: Boolean, name: String }
var defaults = { name: 'evan' }
var parsed = nopt(shortHand, null)(defaults)
console.log(parsed.name)
```

Then run with node

```bash
$ node test.js
// => 'evan'
```

Or try passing in a name

```bash
$ node test --name test
// => 'test'
```


## Author

Evan Lucas

## License

MIT (See `LICENSE` for more info)

---
_Source: https://npm.io/package/noptd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
