# installed-pod-regex

> Create a regex that matches the newly installed Pod list generated with CocoaPods installation commands

Latest version **1.0.0** (published 2015-10-27) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install installed-pod-regex
pnpm add installed-pod-regex
yarn add installed-pod-regex
bun add installed-pod-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 | 2015-10-27 |
| First published | 2015-10-27 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shinnosuke Watanabe |
| Maintainers | shinnn |
| Keywords | cocoapods, pod, pods, version, install, installed, installing, update, list, regex, regexp, match, detect, client-side, browser |

## Links

- npm: https://www.npmjs.com/package/installed-pod-regex
- Repository: https://github.com/shinnn/installed-pod-regex
- Homepage: https://github.com/shinnn/installed-pod-regex#readme
- Issues: https://github.com/shinnn/installed-pod-regex/issues
- npm.io page: https://npm.io/package/installed-pod-regex

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-10-27
- 0.0.1 — 2015-10-27

## README

# installed-pod-regex

[![NPM version](https://img.shields.io/npm/v/installed-pod-regex.svg)](https://www.npmjs.com/package/installed-pod-regex)
[![Build Status](https://travis-ci.org/shinnn/installed-pod-regex.svg?branch=master)](https://travis-ci.org/shinnn/installed-pod-regex)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/installed-pod-regex.svg)](https://coveralls.io/r/shinnn/installed-pod-regex)
[![devDependency Status](https://david-dm.org/shinnn/installed-pod-regex/dev-status.svg)](https://david-dm.org/shinnn/installed-pod-regex#info=devDependencies)

Create a [regular expression](http://www.ecma-international.org/ecma-262/5.1/#sec-15.10) object that matches the newly installed [Pod](https://cocoapods.org/) list generated with [CocoaPods installation commands](https://guides.cocoapods.org/terminal/commands.html#group_installation)

```javascript
const stdout = `
Using colored 1.2
Installing rouge 1.10.1
Installing xcjobs 0.2.2 (was 0.1.2)
`;

stdout.match(installedPodRegex());
//=> ['Installing rouge 1.10.1', 'Installing xcjobs 0.2.2 (was 0.1.2)']
```

## Installation

### Package managers

#### [npm](https://www.npmjs.com/)

```
npm install installed-pod-regex
```

#### [bower](http://bower.io/)

```
bower install installed-pod-regex
```

### Standalone

[Download the script file directly.](https://raw.githubusercontent.com/shinnn/installed-pod-regex/master/browser.js)

## API

### installedPodRegex()

Return: [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp) instance with `g` and `m` flags

```javascript
const stdout = `
Installing rouge 1.10.1
Installing xcjobs 0.2.2 (was 0.1.2)
`;

const regex = installedPodRegex();

regex.exec(stdout);
//=> ['Installing rouge 1.10.1', 'rouge', '1.10.1', undefined]

// The last item of matching result would be a previous version (if available)
regex.exec(stdout);
//=> ['Installing xcjobs 0.2.2 (was 0.1.2)', 'xcjobs', '0.2.2', '0.1.2']

regex.exec(stdout);
//=> null
```

## License

[The Unlicense](./LICENSE)

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