mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 05:31:41 +00:00
update
This commit is contained in:
4
node_modules/is-regexp/index.js
generated
vendored
Normal file
4
node_modules/is-regexp/index.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
module.exports = function (re) {
|
||||
return Object.prototype.toString.call(re) === '[object RegExp]';
|
||||
};
|
70
node_modules/is-regexp/package.json
generated
vendored
Normal file
70
node_modules/is-regexp/package.json
generated
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-regexp@1.0.0",
|
||||
"/Users/tatiana/selfdefined"
|
||||
]
|
||||
],
|
||||
"_from": "is-regexp@1.0.0",
|
||||
"_id": "is-regexp@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=",
|
||||
"_location": "/is-regexp",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "is-regexp@1.0.0",
|
||||
"name": "is-regexp",
|
||||
"escapedName": "is-regexp",
|
||||
"rawSpec": "1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/stringify-object"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz",
|
||||
"_spec": "1.0.0",
|
||||
"_where": "/Users/tatiana/selfdefined",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-regexp/issues"
|
||||
},
|
||||
"description": "Check whether a variable is a regular expression",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/is-regexp#readme",
|
||||
"keywords": [
|
||||
"regex",
|
||||
"regexp",
|
||||
"regular",
|
||||
"expression",
|
||||
"regular expression",
|
||||
"re",
|
||||
"check",
|
||||
"type",
|
||||
"is"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-regexp",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/is-regexp.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
31
node_modules/is-regexp/readme.md
generated
vendored
Normal file
31
node_modules/is-regexp/readme.md
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# is-regexp [](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)
|
Reference in New Issue
Block a user