Urara-Blog/node_modules/.pnpm-store/v3/files/fb/f42f9f85915894e8db98605d404df0e95e7cfe047e9aaa492cd62d82906e23930a80431470e900563b52c386900f694c4c2ceeabde74ac2ed67fac0bb253e4
2022-08-14 01:14:53 +08:00

31 lines
477 B
Text

# is-regexp [![Build Status](https://travis-ci.org/sindresorhus/is-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/is-regexp)
> Check whether a variable is a regular expression
## Install
```sh
$ npm install --save is-regexp
```
## Usage
```js
var isRegexp = require('is-regexp');
isRegexp('unicorn');
//=> false
isRegexp(/unicorn/);
//=> true
isRegexp(new RegExp('unicorn'));
//=> true
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)