# author-regex

> Regular expression for parsing an `author` string into an object following npm conventions.

Latest version **1.0.0** (published 2017-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install author-regex
pnpm add author-regex
yarn add author-regex
bun add author-regex
```

## 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 | 1.0.0 |
| Published | 2017-03-08 |
| First published | 2014-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | author, authors, exec, expression, extract, maintainer, maintainers, match, package, parse, person, pkg, re, regex, regexp, regular |

## Links

- npm: https://www.npmjs.com/package/author-regex
- Repository: https://github.com/jonschlinkert/author-regex
- Issues: https://github.com/jonschlinkert/author-regex/issues
- npm.io page: https://npm.io/package/author-regex

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-03-08
- 0.2.1 — 2014-09-30
- 0.2.0 — 2014-09-30

## README

# author-regex [![NPM version](https://badge.fury.io/js/author-regex.svg)](http://badge.fury.io/js/author-regex)


> Regular expression for parsing an `author` string into an object following npm conventions.

This the regex used by [parse-authors](https://github.com/jonschlinkert/parse-authors).


**Related**

 - [parse-author](https://github.com/jonschlinkert/parse-author)
 - [parse-authors](https://github.com/jonschlinkert/parse-authors)


## Install
#### Install with [npm](npmjs.org)

```bash
npm i author-regex --save
```
#### Install with [bower](https://github.com/bower/bower)

```bash
bower install author-regex --save
```

## Tests

Run

```bash
npm test
```

## Usage

```js
var re = require('author-regex');

function authors(str) {
  return re().exec(str);
}
console.log(author('Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)'));
```
Returns:

```js
[ 'Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)',
  'Jon Schlinkert',
  'foo@bar.com',
  'https://github.com/jonschlinkert',
  index: 0,
  input: 'Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)' ]
```

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License
Copyright (c) 2014 Jon Schlinkert, contributors.  
Released under the MIT license

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 29, 2014._

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