# newregexp

> Dynamically create regular expressions from strings

Latest version **1.3.0** (published 2019-09-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2019-09-24 |
| First published | 2018-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jam Risser |
| Maintainers | codejamninja |

## Links

- npm: https://www.npmjs.com/package/newregexp
- Repository: https://github.com/codejamninja/newregexp
- npm.io page: https://npm.io/package/newregexp

## Recent versions

- 1.3.0 (latest) — 2019-09-24
- 1.1.0 — 2019-09-24
- 1.0.1 — 2018-10-31
- 1.0.0 — 2018-10-31
- 0.1.1 — 2018-10-31
- 0.1.0 — 2018-10-31
- 0.0.1 — 2018-03-09

## README

# newregexp

[![GitHub stars](https://img.shields.io/github/stars/codejamninja/newregexp.svg?style=social&label=Stars)](https://github.com/codejamninja/newregexp)

> Dynamically create regular expressions from strings

Please ★ this repo if you found it useful ★ ★ ★


## Features

* Create regex from string
* Works with native javascript RegExp api
* Understands regex flags
* Supports typescript


## Installation

```sh
npm install --save newregexp
```


## Dependencies

* [NodeJS](https://nodejs.org)


## Usage

```js
import newRegExp from 'newregexp';

const regex = newRegExp('/hello/g');
regex.test('hello'); // true
```


## Support

Submit an [issue](https://github.com/codejamninja/newregexp/issues/new)


## Screenshots

[Contribute](https://github.com/codejamninja/newregexp/blob/master/CONTRIBUTING.md) a screenshot


## Contributing

Review the [guidelines for contributing](https://github.com/codejamninja/newregexp/blob/master/CONTRIBUTING.md)


## License

[MIT License](https://github.com/codejamninja/newregexp/blob/master/LICENSE)

[Jam Risser](https://codejam.ninja) © 2018


## Changelog

Review the [changelog](https://github.com/codejamninja/newregexp/blob/master/CHANGELOG.md)


## Credits

* [Jam Risser](https://codejam.ninja) - Author


## Support on Liberapay

A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.

[Add some fuel](https://liberapay.com/codejamninja/donate) if you'd like to keep me going!

[![Liberapay receiving](https://img.shields.io/liberapay/receives/codejamninja.svg?style=flat-square)](https://liberapay.com/codejamninja/donate)
[![Liberapay patrons](https://img.shields.io/liberapay/patrons/codejamninja.svg?style=flat-square)](https://liberapay.com/codejamninja/donate)

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