mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-12 21:03:32 -06:00
Initial commit
This commit is contained in:
12
node_modules/is-supported-regexp-flag/index.js
generated
vendored
Normal file
12
node_modules/is-supported-regexp-flag/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
module.exports = function (flag) {
|
||||
var supported = true;
|
||||
|
||||
try {
|
||||
new RegExp('', flag);
|
||||
} catch (err) {
|
||||
supported = false;
|
||||
}
|
||||
|
||||
return supported;
|
||||
};
|
90
node_modules/is-supported-regexp-flag/package.json
generated
vendored
Normal file
90
node_modules/is-supported-regexp-flag/package.json
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-supported-regexp-flag@^1.0.0",
|
||||
"/Users/pmarsceill/_projects/just-the-docs/node_modules/clone-regexp"
|
||||
]
|
||||
],
|
||||
"_from": "is-supported-regexp-flag@>=1.0.0 <2.0.0",
|
||||
"_id": "is-supported-regexp-flag@1.0.0",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/is-supported-regexp-flag",
|
||||
"_npmUser": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "sindresorhus"
|
||||
},
|
||||
"_npmVersion": "1.4.21",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "is-supported-regexp-flag",
|
||||
"raw": "is-supported-regexp-flag@^1.0.0",
|
||||
"rawSpec": "^1.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/clone-regexp"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.0.tgz",
|
||||
"_shasum": "8b520c85fae7a253382d4b02652e045576e13bb8",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "is-supported-regexp-flag@^1.0.0",
|
||||
"_where": "/Users/pmarsceill/_projects/just-the-docs/node_modules/clone-regexp",
|
||||
"author": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "Sindre Sorhus",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-supported-regexp-flag/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Check whether a RegExp flag is supported. Mostly useful for `y` and `u`.",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "8b520c85fae7a253382d4b02652e045576e13bb8",
|
||||
"tarball": "https://registry.npmjs.org/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.0.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "d43d48a561600e74bf26b88ddd11026a452d0c15",
|
||||
"homepage": "https://github.com/sindresorhus/is-supported-regexp-flag",
|
||||
"keywords": [
|
||||
"check",
|
||||
"flag",
|
||||
"is",
|
||||
"re",
|
||||
"regex",
|
||||
"regexp",
|
||||
"support",
|
||||
"supported",
|
||||
"valid"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "is-supported-regexp-flag",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/is-supported-regexp-flag.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
30
node_modules/is-supported-regexp-flag/readme.md
generated
vendored
Normal file
30
node_modules/is-supported-regexp-flag/readme.md
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
# is-supported-regexp-flag [](https://travis-ci.org/sindresorhus/is-supported-regexp-flag)
|
||||
|
||||
> Check whether a RegExp flag is supported. Mostly useful for `y` and `u`.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ npm install --save is-supported-regexp-flag
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isSupportedRegexpFlag = require('is-supported-regexp-flag');
|
||||
|
||||
isSupportedRegexpFlag('g'); // as in /foo/g
|
||||
//=> true
|
||||
|
||||
isSupportedRegexpFlag('u');
|
||||
//=> false
|
||||
```
|
||||
|
||||
RegExp throws if you're trying to use unsupported flags. This is a nicer way to check for support.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
Reference in New Issue
Block a user