# mixarg

> mixin argument with defaults using minimist

Latest version **0.2.0** (published 2014-12-17) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-12-17 |
| First published | 2014-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | popomore |
| Maintainers | popomore |

## Links

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

## Dependencies (2)

- [extend](https://npm.io/package/extend.md) ~1.3.0
- [minimist](https://npm.io/package/minimist.md) ~1.1.0

## Recent versions

- 0.2.0 (latest) — 2014-12-17
- 0.1.1 — 2014-09-16
- 0.1.0 — 2014-09-16

## README

# mixarg

[![NPM version](https://img.shields.io/npm/v/mixarg.svg?style=flat)](https://npmjs.org/package/mixarg)
[![Build Status](https://img.shields.io/travis/popomore/mixarg.svg?style=flat)](https://travis-ci.org/popomore/mixarg)
[![Build Status](https://img.shields.io/coveralls/popomore/mixarg?style=flat)](https://coveralls.io/r/popomore/mixarg)
[![NPM downloads](http://img.shields.io/npm/dm/mixarg.svg?style=flat)](https://npmjs.org/package/mixarg)

mixin argument with defaults using minimist

---

## Install

```
$ npm install mixarg -g
```

## Usage

```
var mixarg = require('mixarg');
var default = {
  cwd: process.cwd(),
  include: 'relative',
  verbose: false
};
mixarg(defaults, '--verbose --include=all', {cwd: '/home/admin'});
// return
// {
//   cwd: '/home/admin',
//   include: 'all',
//   verbose: true
// }
```

## API

mixarg(arg1, ..., argN);

- arg should be object or string(parsed by minimist)
- the latter argument has high priority than the former one

## LISENCE

Copyright (c) 2014 popomore. Licensed under the MIT license.

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