identifiers-arxiv
Version:
Extract, validate and normalize arXiv IDs.
34 lines (20 loc) • 959 B
Markdown
# Identifiers - arXiv [](https://travis-ci.org/altmetric/identifiers-arxiv)
Extract, validate and normalize [arXiv IDs](https://arxiv.org/help/arxiv_identifier).
**Current version:** 0.1.1
**Supported Node.js versions:** 4, 5, 6, 7
## Installation
Add the following to your `package.json` via `yarn add identifiers-arxiv` or `npm install --save identifiers-arxiv`:
```shell
"identifiers-arxiv": "^0.1.0"
```
## Usage
```javascript
const arxiv = require("identifiers-arxiv");
arxiv.extract("math.GT/0309136\narXiv:1501.00001v2");
//=> ["math.GT/0309136", "1501.00001v2"]
```
## Other versions
We also maintain versions of this library for [Ruby](https://github.com/altmetric/identifiers) and [PHP](https://github.com/altmetric/php-identifiers).
## License
Copyright © 2017 Altmetric LLP
Distributed under the [MIT License](http://opensource.org/licenses/MIT).