doc: add eslint-plugin-markdown
* install eslint-plugin-markdown * add doc/.eslintrc.yaml * add `<!-- eslint-disable rule -->` or `<!-- eslint-disable -->` for the rest of problematic code * .js files in doc folder added to .eslintignore * update Makefile and vcbuild.bat PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
This commit is contained in:
parent
e2c3e4727d
commit
b4fea2a3d6
@ -7,3 +7,4 @@ test/tmp*/
|
||||
tools/eslint
|
||||
node_modules
|
||||
benchmark/tmp/
|
||||
doc/**/*.js
|
||||
|
@ -1,5 +1,8 @@
|
||||
root: true
|
||||
|
||||
plugins:
|
||||
- markdown
|
||||
|
||||
env:
|
||||
node: true
|
||||
es6: true
|
||||
|
4
Makefile
4
Makefile
@ -855,8 +855,8 @@ bench-ci: bench
|
||||
|
||||
jslint:
|
||||
@echo "Running JS linter..."
|
||||
$(NODE) tools/eslint/bin/eslint.js --cache --rulesdir=tools/eslint-rules \
|
||||
benchmark lib test tools
|
||||
$(NODE) tools/eslint/bin/eslint.js --cache --rulesdir=tools/eslint-rules --ext=.js,.md \
|
||||
benchmark doc lib test tools
|
||||
|
||||
jslint-ci:
|
||||
@echo "Running JS linter..."
|
||||
|
5
doc/.eslintrc.yaml
Normal file
5
doc/.eslintrc.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
rules:
|
||||
strict: 0
|
||||
no-restricted-properties: 0
|
||||
no-undef: 0
|
||||
no-unused-vars: 0
|
@ -554,6 +554,7 @@ Note that `error` can not be a string. If a string is provided as the second
|
||||
argument, then `error` is assumed to be omitted and the string will be used for
|
||||
`message` instead. This can lead to easy-to-miss mistakes:
|
||||
|
||||
<!-- eslint-disable assert-throws-arguments -->
|
||||
```js
|
||||
// THIS IS A MISTAKE! DO NOT DO THIS!
|
||||
assert.throws(myFunction, 'missing foo', 'did not throw with expected message');
|
||||
|
@ -523,14 +523,11 @@ When any of the workers die the cluster module will emit the `'exit'` event.
|
||||
This can be used to restart the worker by calling `.fork()` again.
|
||||
|
||||
```js
|
||||
cluster.on(
|
||||
'exit',
|
||||
(worker, code, signal) => {
|
||||
console.log('worker %d died (%s). restarting...',
|
||||
worker.process.pid, signal || code);
|
||||
cluster.fork();
|
||||
}
|
||||
);
|
||||
cluster.on('exit', (worker, code, signal) => {
|
||||
console.log('worker %d died (%s). restarting...',
|
||||
worker.process.pid, signal || code);
|
||||
cluster.fork();
|
||||
});
|
||||
```
|
||||
|
||||
See [child_process event: 'exit'][].
|
||||
|
@ -135,6 +135,7 @@ by extending Node.js' `console` and overriding the `console.assert()` method.
|
||||
In the following example, a simple module is created that extends and overrides
|
||||
the default behavior of `console` in Node.js.
|
||||
|
||||
<!-- eslint-disable func-name-matching -->
|
||||
```js
|
||||
'use strict';
|
||||
|
||||
@ -142,7 +143,7 @@ the default behavior of `console` in Node.js.
|
||||
// new impl for assert without monkey-patching.
|
||||
const myConsole = Object.create(console, {
|
||||
assert: {
|
||||
value(assertion, message, ...args) {
|
||||
value: function assert(assertion, message, ...args) {
|
||||
try {
|
||||
console.assert(assertion, message, ...args);
|
||||
} catch (err) {
|
||||
@ -276,7 +277,7 @@ prints the result to `stdout`:
|
||||
|
||||
```js
|
||||
console.time('100-elements');
|
||||
for (let i = 0; i < 100; i++) ;
|
||||
for (let i = 0; i < 100; i++) {}
|
||||
console.timeEnd('100-elements');
|
||||
// prints 100-elements: 225.438ms
|
||||
```
|
||||
|
@ -289,7 +289,7 @@ decipher.on('end', () => {
|
||||
});
|
||||
|
||||
const encrypted =
|
||||
'ca981be48e90867604588e75d04feabb63cc007a8f8ad89b10616ed84d815504';
|
||||
'ca981be48e90867604588e75d04feabb63cc007a8f8ad89b10616ed84d815504';
|
||||
decipher.write(encrypted, 'hex');
|
||||
decipher.end();
|
||||
```
|
||||
@ -314,7 +314,7 @@ const crypto = require('crypto');
|
||||
const decipher = crypto.createDecipher('aes192', 'a password');
|
||||
|
||||
const encrypted =
|
||||
'ca981be48e90867604588e75d04feabb63cc007a8f8ad89b10616ed84d815504';
|
||||
'ca981be48e90867604588e75d04feabb63cc007a8f8ad89b10616ed84d815504';
|
||||
let decrypted = decipher.update(encrypted, 'hex', 'utf8');
|
||||
decrypted += decipher.final('utf8');
|
||||
console.log(decrypted);
|
||||
|
@ -26,6 +26,7 @@ inspection are possible.
|
||||
Inserting the statement `debugger;` into the source code of a script will
|
||||
enable a breakpoint at that position in the code:
|
||||
|
||||
<!-- eslint-disable no-debugger -->
|
||||
```js
|
||||
// myscript.js
|
||||
global.x = 5;
|
||||
|
@ -293,6 +293,7 @@ function will contain an array of objects with the following properties:
|
||||
|
||||
For example:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
flags: 's',
|
||||
@ -352,6 +353,7 @@ be an object with the following properties:
|
||||
* `expire`
|
||||
* `minttl`
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
nsname: 'ns.example.com',
|
||||
@ -382,6 +384,7 @@ be an array of objects with the following properties:
|
||||
* `port`
|
||||
* `name`
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
priority: 10,
|
||||
|
@ -217,7 +217,7 @@ synchronous counterparts are of this type.
|
||||
For a regular file [`util.inspect(stats)`][] would return a string very
|
||||
similar to this:
|
||||
|
||||
```txt
|
||||
```
|
||||
Stats {
|
||||
dev: 2114,
|
||||
ino: 48064969,
|
||||
|
@ -12,6 +12,7 @@ user is able to stream data.
|
||||
|
||||
HTTP message headers are represented by an object like this:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{ 'content-length': '123',
|
||||
'content-type': 'text/plain',
|
||||
@ -34,6 +35,7 @@ property, which is an array of `[key, value, key2, value2, ...]`. For
|
||||
example, the previous message header object might have a `rawHeaders`
|
||||
list like the following:
|
||||
|
||||
<!-- eslint-disable semi -->
|
||||
```js
|
||||
[ 'ConTent-Length', '123456',
|
||||
'content-LENGTH', '123',
|
||||
@ -1460,6 +1462,7 @@ Accept: text/plain\r\n
|
||||
|
||||
Then `request.url` will be:
|
||||
|
||||
<!-- eslint-disable semi -->
|
||||
```js
|
||||
'/status?name=ryan'
|
||||
```
|
||||
|
@ -67,11 +67,7 @@ The module system is implemented in the `require('module')` module.
|
||||
|
||||
When a file is run directly from Node.js, `require.main` is set to its
|
||||
`module`. That means that you can determine whether a file has been run
|
||||
directly by testing
|
||||
|
||||
```js
|
||||
require.main === module;
|
||||
```
|
||||
directly by testing `require.main === module`.
|
||||
|
||||
For a file `foo.js`, this will be `true` if run via `node foo.js`, but
|
||||
`false` if run by `require('./foo')`.
|
||||
@ -556,6 +552,7 @@ exports = { hello: false }; // Not exported, only available in the module
|
||||
When the `module.exports` property is being completely replaced by a new
|
||||
object, it is common to also reassign `exports`, for example:
|
||||
|
||||
<!-- eslint-disable func-name-matching -->
|
||||
```js
|
||||
module.exports = exports = function Constructor() {
|
||||
// ... etc.
|
||||
|
@ -71,6 +71,7 @@ The properties included on each object include:
|
||||
|
||||
For example:
|
||||
|
||||
<!-- eslint-disable semi -->
|
||||
```js
|
||||
[
|
||||
{
|
||||
@ -253,6 +254,7 @@ The properties available on the assigned network address object include:
|
||||
* `scopeid` {number} The numeric IPv6 scope ID (only specified when `family`
|
||||
is `IPv6`)
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
lo: [
|
||||
|
@ -528,7 +528,8 @@ running the `./configure` script.
|
||||
|
||||
An example of the possible output looks like:
|
||||
|
||||
```txt
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
target_defaults:
|
||||
{ cflags: [],
|
||||
@ -745,6 +746,7 @@ See environ(7).
|
||||
|
||||
An example of this object looks like:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
TERM: 'xterm-256color',
|
||||
@ -832,12 +834,14 @@ $ node --harmony script.js --version
|
||||
|
||||
Results in `process.execArgv`:
|
||||
|
||||
<!-- eslint-disable semi -->
|
||||
```js
|
||||
['--harmony']
|
||||
```
|
||||
|
||||
And `process.argv`:
|
||||
|
||||
<!-- eslint-disable semi -->
|
||||
```js
|
||||
['/usr/local/bin/node', 'script.js', '--version']
|
||||
```
|
||||
@ -854,6 +858,7 @@ that started the Node.js process.
|
||||
|
||||
For example:
|
||||
|
||||
<!-- eslint-disable semi -->
|
||||
```js
|
||||
'/usr/local/bin/node'
|
||||
```
|
||||
@ -1173,6 +1178,7 @@ console.log(process.memoryUsage());
|
||||
|
||||
Will generate:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
rss: 4935680,
|
||||
@ -1344,6 +1350,7 @@ tarball.
|
||||
|
||||
For example:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
name: 'node',
|
||||
@ -1705,6 +1712,7 @@ console.log(process.versions);
|
||||
|
||||
Will generate an object similar to:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
http_parser: '2.3.0',
|
||||
|
@ -59,6 +59,7 @@ collection of key and value pairs.
|
||||
|
||||
For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
foo: 'bar',
|
||||
|
@ -414,7 +414,7 @@ For instance: `[[substr1, substr2, ...], originalsubstring]`.
|
||||
```js
|
||||
function completer(line) {
|
||||
const completions = '.help .error .exit .quit .q'.split(' ');
|
||||
const hits = completions.filter((c) => { return c.indexOf(line) === 0; });
|
||||
const hits = completions.filter((c) => c.indexOf(line) === 0);
|
||||
// show all completions if none found
|
||||
return [hits.length ? hits : completions, line];
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ The following special commands are supported by all REPL instances:
|
||||
`> .load ./file/to/load.js`
|
||||
* `.editor` - Enter editor mode (`<ctrl>-D` to finish, `<ctrl>-C` to cancel)
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
> .editor
|
||||
// Entering editor mode (^D to finish, ^C to cancel)
|
||||
@ -75,6 +76,7 @@ evaluation function when the `repl.REPLServer` instance is created.
|
||||
|
||||
The default evaluator supports direct evaluation of JavaScript expressions:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
> 1 + 1
|
||||
2
|
||||
@ -103,6 +105,7 @@ repl.start('> ').context.m = msg;
|
||||
|
||||
Properties in the `context` object appear as local within the REPL:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
$ node repl_test.js
|
||||
> m
|
||||
@ -132,6 +135,7 @@ REPL environment when used. For instance, unless otherwise declared as a
|
||||
global or scoped variable, the input `fs` will be evaluated on-demand as
|
||||
`global.fs = require('fs')`.
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
> fs.createReadStream('./some/file');
|
||||
```
|
||||
@ -142,6 +146,7 @@ The default evaluator will, by default, assign the result of the most recently
|
||||
evaluated expression to the special variable `_` (underscore).
|
||||
Explicitly setting `_` to a value will disable this behavior.
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
> [ 'a', 'b', 'c' ]
|
||||
[ 'a', 'b', 'c' ]
|
||||
@ -288,6 +293,7 @@ r.on('reset', initializeContext);
|
||||
When this code is executed, the global `'m'` variable can be modified but then
|
||||
reset to its initial value using the `.clear` command:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
$ ./node example.js
|
||||
> m
|
||||
@ -438,6 +444,7 @@ Node.js itself uses the `repl` module to provide its own interactive interface
|
||||
for executing JavaScript. This can be used by executing the Node.js binary
|
||||
without passing any arguments (or by passing the `-i` argument):
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
$ node
|
||||
> const a = [1, 2, 3];
|
||||
|
@ -280,7 +280,7 @@ has been called, and all data has been flushed to the underlying system.
|
||||
|
||||
```js
|
||||
const writer = getWritableStreamSomehow();
|
||||
for (var i = 0; i < 100; i++) {
|
||||
for (let i = 0; i < 100; i++) {
|
||||
writer.write(`hello, #${i}!\n`);
|
||||
}
|
||||
writer.end('This is the end\n');
|
||||
|
@ -116,6 +116,7 @@ swapped out by the operating system.
|
||||
|
||||
For example:
|
||||
|
||||
<!-- eslint-disable -->
|
||||
```js
|
||||
{
|
||||
total_heap_size: 7326976,
|
||||
|
@ -151,8 +151,9 @@ From `zlib/zconf.h`, modified to node.js's usage:
|
||||
|
||||
The memory requirements for deflate are (in bytes):
|
||||
|
||||
<!-- eslint-disable semi -->
|
||||
```js
|
||||
(1 << (windowBits + 2)) + (1 << (memLevel + 9));
|
||||
(1 << (windowBits + 2)) + (1 << (memLevel + 9))
|
||||
```
|
||||
|
||||
That is: 128K for windowBits=15 + 128K for memLevel = 8
|
||||
@ -167,12 +168,7 @@ const options = { windowBits: 14, memLevel: 7 };
|
||||
|
||||
This will, however, generally degrade compression.
|
||||
|
||||
The memory requirements for inflate are (in bytes)
|
||||
|
||||
```js
|
||||
1 << windowBits;
|
||||
```
|
||||
|
||||
The memory requirements for inflate are (in bytes) `1 << windowBits`.
|
||||
That is, 32K for windowBits=15 (default value) plus a few kilobytes
|
||||
for small objects.
|
||||
|
||||
|
@ -352,6 +352,7 @@ A non-op `Function` that can be used for a variety of scenarios.
|
||||
|
||||
For instance,
|
||||
|
||||
<!-- eslint-disable strict, no-undef -->
|
||||
```js
|
||||
const common = require('../common');
|
||||
|
||||
|
15
tools/eslint/node_modules/.bin/remark
generated
vendored
Normal file
15
tools/eslint/node_modules/.bin/remark
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../remark/cli.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../remark/cli.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
7
tools/eslint/node_modules/.bin/remark.cmd
generated
vendored
Normal file
7
tools/eslint/node_modules/.bin/remark.cmd
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\remark\cli.js" %*
|
||||
) ELSE (
|
||||
@SETLOCAL
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\remark\cli.js" %*
|
||||
)
|
22
tools/eslint/node_modules/bail/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/bail/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
12
tools/eslint/node_modules/bail/history.md
generated
vendored
Normal file
12
tools/eslint/node_modules/bail/history.md
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<!--remark setext-->
|
||||
|
||||
<!--lint disable no-multiple-toplevel-headings-->
|
||||
|
||||
1.0.1 / 2016-07-23
|
||||
==================
|
||||
|
||||
* Rewrite module ([`75e6d41`](https://github.com/wooorm/bail/commit/75e6d41))
|
||||
* Update dev-dependencies ([`9ec98f9`](https://github.com/wooorm/bail/commit/9ec98f9))
|
||||
|
||||
1.0.0 / 2015-07-28
|
||||
==================
|
34
tools/eslint/node_modules/bail/index.js
generated
vendored
Normal file
34
tools/eslint/node_modules/bail/index.js
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
/**
|
||||
* @author Titus Wormer
|
||||
* @copyright 2015 Titus Wormer
|
||||
* @license MIT
|
||||
* @module bail
|
||||
* @fileoverview Throw a given error.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/* Expose. */
|
||||
module.exports = bail;
|
||||
|
||||
/**
|
||||
* Throw a given error.
|
||||
*
|
||||
* @example
|
||||
* bail();
|
||||
*
|
||||
* @example
|
||||
* bail(new Error('failure'));
|
||||
* // Error: failure
|
||||
* // at repl:1:6
|
||||
* // at REPLServer.defaultEval (repl.js:154:27)
|
||||
* // ...
|
||||
*
|
||||
* @param {Error?} [err] - Optional error.
|
||||
* @throws {Error} - `err`, when given.
|
||||
*/
|
||||
function bail(err) {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
}
|
138
tools/eslint/node_modules/bail/package.json
generated
vendored
Normal file
138
tools/eslint/node_modules/bail/package.json
generated
vendored
Normal file
@ -0,0 +1,138 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "bail@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "bail",
|
||||
"name": "bail",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\unified"
|
||||
]
|
||||
],
|
||||
"_from": "bail@>=1.0.0 <2.0.0",
|
||||
"_id": "bail@1.0.1",
|
||||
"_inCache": true,
|
||||
"_location": "/bail",
|
||||
"_nodeVersion": "5.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/bail-1.0.1.tgz_1469301368484_0.1634318893775344"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "3.3.6",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "bail@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "bail",
|
||||
"name": "bail",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/unified"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/bail/-/bail-1.0.1.tgz",
|
||||
"_shasum": "912579de8b391aadf3c5fdf4cd2a0fc225df3bc2",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "bail@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\unified",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/bail/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "Throw a given error",
|
||||
"devDependencies": {
|
||||
"browserify": "^13.0.1",
|
||||
"esmangle": "^1.0.1",
|
||||
"nyc": "^7.0.0",
|
||||
"remark-cli": "^1.0.0",
|
||||
"remark-comment-config": "^4.0.0",
|
||||
"remark-github": "^5.0.0",
|
||||
"remark-lint": "^4.0.0",
|
||||
"remark-validate-links": "^4.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.16.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "912579de8b391aadf3c5fdf4cd2a0fc225df3bc2",
|
||||
"tarball": "https://registry.npmjs.org/bail/-/bail-1.0.1.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "5f9cf008fe599445037e88974801dfd66f9c1911",
|
||||
"homepage": "https://github.com/wooorm/bail#readme",
|
||||
"keywords": [
|
||||
"fail",
|
||||
"bail",
|
||||
"throw",
|
||||
"callback",
|
||||
"error"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "bail",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"plugins": [
|
||||
"comment-config",
|
||||
"github",
|
||||
"lint",
|
||||
"validate-links"
|
||||
],
|
||||
"settings": {
|
||||
"bullet": "*"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/bail.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.js --bare -s bail > bail.js",
|
||||
"build-mangle": "esmangle bail.js > bail.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.0.1",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"ignores": [
|
||||
"bail.js",
|
||||
"bail.min.js"
|
||||
]
|
||||
}
|
||||
}
|
73
tools/eslint/node_modules/bail/readme.md
generated
vendored
Normal file
73
tools/eslint/node_modules/bail/readme.md
generated
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
# bail [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
<!--lint disable heading-increment list-item-spacing-->
|
||||
|
||||
:warning: Throw a given error.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install bail
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var bail = require('bail');
|
||||
|
||||
bail();
|
||||
|
||||
bail(new Error('failure'));
|
||||
// Error: failure
|
||||
// at repl:1:6
|
||||
// at REPLServer.defaultEval (repl.js:154:27)
|
||||
// ...
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `bail([err])`
|
||||
|
||||
Throw a given error.
|
||||
|
||||
###### Parameters
|
||||
|
||||
* `err` (`Error?`) — Optional error.
|
||||
|
||||
###### Throws
|
||||
|
||||
* `Error` — Given error, if any.
|
||||
|
||||
## Related
|
||||
|
||||
* [`noop`][noop];
|
||||
* [`noop2`][noop2];
|
||||
* [`noop3`][noop3];
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/bail.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/bail
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/bail.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/bail
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
||||
|
||||
[noop]: https://www.npmjs.com/package/noop
|
||||
|
||||
[noop2]: https://www.npmjs.com/package/noop2
|
||||
|
||||
[noop3]: https://www.npmjs.com/package/noop3
|
22
tools/eslint/node_modules/ccount/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/ccount/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
11
tools/eslint/node_modules/ccount/history.md
generated
vendored
Normal file
11
tools/eslint/node_modules/ccount/history.md
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!--remark setext-->
|
||||
|
||||
<!--lint disable no-multiple-toplevel-headings-->
|
||||
|
||||
1.0.1 / 2016-07-23
|
||||
==================
|
||||
|
||||
* Rewrite module ([`c3cd494`](https://github.com/wooorm/ccount/commit/c3cd494))
|
||||
|
||||
1.0.0 / 2015-07-12
|
||||
==================
|
46
tools/eslint/node_modules/ccount/index.js
generated
vendored
Normal file
46
tools/eslint/node_modules/ccount/index.js
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
/**
|
||||
* @author Titus Wormer
|
||||
* @copyright 2015 Titus Wormer
|
||||
* @license MIT
|
||||
* @module ccount
|
||||
* @fileoverview Count characters.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/* Expose. */
|
||||
module.exports = ccount;
|
||||
|
||||
/**
|
||||
* Count how many characters `character` occur in `value`.
|
||||
*
|
||||
* @example
|
||||
* ccount('foo(bar(baz)', '(') // 2
|
||||
* ccount('foo(bar(baz)', ')') // 1
|
||||
*
|
||||
* @param {string} value - Content, coerced to string.
|
||||
* @param {string} character - Single character to look
|
||||
* for.
|
||||
* @return {number} - Count.
|
||||
* @throws {Error} - when `character` is not a single
|
||||
* character.
|
||||
*/
|
||||
function ccount(value, character) {
|
||||
var count = 0;
|
||||
var index;
|
||||
|
||||
value = String(value);
|
||||
|
||||
if (typeof character !== 'string' || character.length !== 1) {
|
||||
throw new Error('Expected character');
|
||||
}
|
||||
|
||||
index = value.indexOf(character);
|
||||
|
||||
while (index !== -1) {
|
||||
count++;
|
||||
index = value.indexOf(character, index + 1);
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
136
tools/eslint/node_modules/ccount/package.json
generated
vendored
Normal file
136
tools/eslint/node_modules/ccount/package.json
generated
vendored
Normal file
@ -0,0 +1,136 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "ccount@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "ccount",
|
||||
"name": "ccount",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\remark-stringify"
|
||||
]
|
||||
],
|
||||
"_from": "ccount@>=1.0.0 <2.0.0",
|
||||
"_id": "ccount@1.0.1",
|
||||
"_inCache": true,
|
||||
"_location": "/ccount",
|
||||
"_nodeVersion": "5.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/ccount-1.0.1.tgz_1469303388454_0.4032677055802196"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "3.3.6",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "ccount@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "ccount",
|
||||
"name": "ccount",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/remark-stringify"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/ccount/-/ccount-1.0.1.tgz",
|
||||
"_shasum": "665687945168c218ec77ff61a4155ae00227a96c",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "ccount@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\remark-stringify",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/ccount/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "Count characters",
|
||||
"devDependencies": {
|
||||
"browserify": "^13.0.1",
|
||||
"esmangle": "^1.0.1",
|
||||
"nyc": "^7.0.0",
|
||||
"remark-cli": "^1.0.0",
|
||||
"remark-comment-config": "^4.0.0",
|
||||
"remark-github": "^5.0.0",
|
||||
"remark-lint": "^4.0.0",
|
||||
"remark-validate-links": "^4.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.16.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "665687945168c218ec77ff61a4155ae00227a96c",
|
||||
"tarball": "https://registry.npmjs.org/ccount/-/ccount-1.0.1.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "5a787f3e93dd18d121b9bd4be6d1da96c8c17187",
|
||||
"homepage": "https://github.com/wooorm/ccount#readme",
|
||||
"keywords": [
|
||||
"character",
|
||||
"count",
|
||||
"char"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "ccount",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"plugins": [
|
||||
"comment-config",
|
||||
"github",
|
||||
"lint",
|
||||
"validate-links"
|
||||
],
|
||||
"settings": {
|
||||
"bullet": "*"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/ccount.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.js --bare -s ccount > ccount.js",
|
||||
"build-mangle": "esmangle ccount.js > ccount.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.0.1",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"ignores": [
|
||||
"ccount.js",
|
||||
"ccount.min.js"
|
||||
]
|
||||
}
|
||||
}
|
57
tools/eslint/node_modules/ccount/readme.md
generated
vendored
Normal file
57
tools/eslint/node_modules/ccount/readme.md
generated
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
# ccount [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
<!--lint disable heading-increment list-item-spacing-->
|
||||
|
||||
Count characters.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install ccount
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
var ccount = require('ccount');
|
||||
|
||||
ccount('foo(bar(baz)', '(') // 2
|
||||
ccount('foo(bar(baz)', ')') // 1
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `ccount(value, character)`
|
||||
|
||||
Get the total count of `character` in `value`.
|
||||
|
||||
###### Parameters
|
||||
|
||||
* `value` (`string`) — Content, coerced to string.
|
||||
* `character` (`string`) — Single character to look for.
|
||||
|
||||
###### Returns
|
||||
|
||||
`number` — Number of times `character` occurred in `value`.
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/ccount.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/ccount
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/ccount.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/ccount
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
22
tools/eslint/node_modules/character-entities-html4/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/character-entities-html4/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
254
tools/eslint/node_modules/character-entities-html4/index.json
generated
vendored
Normal file
254
tools/eslint/node_modules/character-entities-html4/index.json
generated
vendored
Normal file
@ -0,0 +1,254 @@
|
||||
{
|
||||
"nbsp": " ",
|
||||
"iexcl": "¡",
|
||||
"cent": "¢",
|
||||
"pound": "£",
|
||||
"curren": "¤",
|
||||
"yen": "¥",
|
||||
"brvbar": "¦",
|
||||
"sect": "§",
|
||||
"uml": "¨",
|
||||
"copy": "©",
|
||||
"ordf": "ª",
|
||||
"laquo": "«",
|
||||
"not": "¬",
|
||||
"shy": "",
|
||||
"reg": "®",
|
||||
"macr": "¯",
|
||||
"deg": "°",
|
||||
"plusmn": "±",
|
||||
"sup2": "²",
|
||||
"sup3": "³",
|
||||
"acute": "´",
|
||||
"micro": "µ",
|
||||
"para": "¶",
|
||||
"middot": "·",
|
||||
"cedil": "¸",
|
||||
"sup1": "¹",
|
||||
"ordm": "º",
|
||||
"raquo": "»",
|
||||
"frac14": "¼",
|
||||
"frac12": "½",
|
||||
"frac34": "¾",
|
||||
"iquest": "¿",
|
||||
"Agrave": "À",
|
||||
"Aacute": "Á",
|
||||
"Acirc": "Â",
|
||||
"Atilde": "Ã",
|
||||
"Auml": "Ä",
|
||||
"Aring": "Å",
|
||||
"AElig": "Æ",
|
||||
"Ccedil": "Ç",
|
||||
"Egrave": "È",
|
||||
"Eacute": "É",
|
||||
"Ecirc": "Ê",
|
||||
"Euml": "Ë",
|
||||
"Igrave": "Ì",
|
||||
"Iacute": "Í",
|
||||
"Icirc": "Î",
|
||||
"Iuml": "Ï",
|
||||
"ETH": "Ð",
|
||||
"Ntilde": "Ñ",
|
||||
"Ograve": "Ò",
|
||||
"Oacute": "Ó",
|
||||
"Ocirc": "Ô",
|
||||
"Otilde": "Õ",
|
||||
"Ouml": "Ö",
|
||||
"times": "×",
|
||||
"Oslash": "Ø",
|
||||
"Ugrave": "Ù",
|
||||
"Uacute": "Ú",
|
||||
"Ucirc": "Û",
|
||||
"Uuml": "Ü",
|
||||
"Yacute": "Ý",
|
||||
"THORN": "Þ",
|
||||
"szlig": "ß",
|
||||
"agrave": "à",
|
||||
"aacute": "á",
|
||||
"acirc": "â",
|
||||
"atilde": "ã",
|
||||
"auml": "ä",
|
||||
"aring": "å",
|
||||
"aelig": "æ",
|
||||
"ccedil": "ç",
|
||||
"egrave": "è",
|
||||
"eacute": "é",
|
||||
"ecirc": "ê",
|
||||
"euml": "ë",
|
||||
"igrave": "ì",
|
||||
"iacute": "í",
|
||||
"icirc": "î",
|
||||
"iuml": "ï",
|
||||
"eth": "ð",
|
||||
"ntilde": "ñ",
|
||||
"ograve": "ò",
|
||||
"oacute": "ó",
|
||||
"ocirc": "ô",
|
||||
"otilde": "õ",
|
||||
"ouml": "ö",
|
||||
"divide": "÷",
|
||||
"oslash": "ø",
|
||||
"ugrave": "ù",
|
||||
"uacute": "ú",
|
||||
"ucirc": "û",
|
||||
"uuml": "ü",
|
||||
"yacute": "ý",
|
||||
"thorn": "þ",
|
||||
"yuml": "ÿ",
|
||||
"fnof": "ƒ",
|
||||
"Alpha": "Α",
|
||||
"Beta": "Β",
|
||||
"Gamma": "Γ",
|
||||
"Delta": "Δ",
|
||||
"Epsilon": "Ε",
|
||||
"Zeta": "Ζ",
|
||||
"Eta": "Η",
|
||||
"Theta": "Θ",
|
||||
"Iota": "Ι",
|
||||
"Kappa": "Κ",
|
||||
"Lambda": "Λ",
|
||||
"Mu": "Μ",
|
||||
"Nu": "Ν",
|
||||
"Xi": "Ξ",
|
||||
"Omicron": "Ο",
|
||||
"Pi": "Π",
|
||||
"Rho": "Ρ",
|
||||
"Sigma": "Σ",
|
||||
"Tau": "Τ",
|
||||
"Upsilon": "Υ",
|
||||
"Phi": "Φ",
|
||||
"Chi": "Χ",
|
||||
"Psi": "Ψ",
|
||||
"Omega": "Ω",
|
||||
"alpha": "α",
|
||||
"beta": "β",
|
||||
"gamma": "γ",
|
||||
"delta": "δ",
|
||||
"epsilon": "ε",
|
||||
"zeta": "ζ",
|
||||
"eta": "η",
|
||||
"theta": "θ",
|
||||
"iota": "ι",
|
||||
"kappa": "κ",
|
||||
"lambda": "λ",
|
||||
"mu": "μ",
|
||||
"nu": "ν",
|
||||
"xi": "ξ",
|
||||
"omicron": "ο",
|
||||
"pi": "π",
|
||||
"rho": "ρ",
|
||||
"sigmaf": "ς",
|
||||
"sigma": "σ",
|
||||
"tau": "τ",
|
||||
"upsilon": "υ",
|
||||
"phi": "φ",
|
||||
"chi": "χ",
|
||||
"psi": "ψ",
|
||||
"omega": "ω",
|
||||
"thetasym": "ϑ",
|
||||
"upsih": "ϒ",
|
||||
"piv": "ϖ",
|
||||
"bull": "•",
|
||||
"hellip": "…",
|
||||
"prime": "′",
|
||||
"Prime": "″",
|
||||
"oline": "‾",
|
||||
"frasl": "⁄",
|
||||
"weierp": "℘",
|
||||
"image": "ℑ",
|
||||
"real": "ℜ",
|
||||
"trade": "™",
|
||||
"alefsym": "ℵ",
|
||||
"larr": "←",
|
||||
"uarr": "↑",
|
||||
"rarr": "→",
|
||||
"darr": "↓",
|
||||
"harr": "↔",
|
||||
"crarr": "↵",
|
||||
"lArr": "⇐",
|
||||
"uArr": "⇑",
|
||||
"rArr": "⇒",
|
||||
"dArr": "⇓",
|
||||
"hArr": "⇔",
|
||||
"forall": "∀",
|
||||
"part": "∂",
|
||||
"exist": "∃",
|
||||
"empty": "∅",
|
||||
"nabla": "∇",
|
||||
"isin": "∈",
|
||||
"notin": "∉",
|
||||
"ni": "∋",
|
||||
"prod": "∏",
|
||||
"sum": "∑",
|
||||
"minus": "−",
|
||||
"lowast": "∗",
|
||||
"radic": "√",
|
||||
"prop": "∝",
|
||||
"infin": "∞",
|
||||
"ang": "∠",
|
||||
"and": "∧",
|
||||
"or": "∨",
|
||||
"cap": "∩",
|
||||
"cup": "∪",
|
||||
"int": "∫",
|
||||
"there4": "∴",
|
||||
"sim": "∼",
|
||||
"cong": "≅",
|
||||
"asymp": "≈",
|
||||
"ne": "≠",
|
||||
"equiv": "≡",
|
||||
"le": "≤",
|
||||
"ge": "≥",
|
||||
"sub": "⊂",
|
||||
"sup": "⊃",
|
||||
"nsub": "⊄",
|
||||
"sube": "⊆",
|
||||
"supe": "⊇",
|
||||
"oplus": "⊕",
|
||||
"otimes": "⊗",
|
||||
"perp": "⊥",
|
||||
"sdot": "⋅",
|
||||
"lceil": "⌈",
|
||||
"rceil": "⌉",
|
||||
"lfloor": "⌊",
|
||||
"rfloor": "⌋",
|
||||
"lang": "〈",
|
||||
"rang": "〉",
|
||||
"loz": "◊",
|
||||
"spades": "♠",
|
||||
"clubs": "♣",
|
||||
"hearts": "♥",
|
||||
"diams": "♦",
|
||||
"quot": "\"",
|
||||
"amp": "&",
|
||||
"lt": "<",
|
||||
"gt": ">",
|
||||
"OElig": "Œ",
|
||||
"oelig": "œ",
|
||||
"Scaron": "Š",
|
||||
"scaron": "š",
|
||||
"Yuml": "Ÿ",
|
||||
"circ": "ˆ",
|
||||
"tilde": "˜",
|
||||
"ensp": " ",
|
||||
"emsp": " ",
|
||||
"thinsp": " ",
|
||||
"zwnj": "",
|
||||
"zwj": "",
|
||||
"lrm": "",
|
||||
"rlm": "",
|
||||
"ndash": "–",
|
||||
"mdash": "—",
|
||||
"lsquo": "‘",
|
||||
"rsquo": "’",
|
||||
"sbquo": "‚",
|
||||
"ldquo": "“",
|
||||
"rdquo": "”",
|
||||
"bdquo": "„",
|
||||
"dagger": "†",
|
||||
"Dagger": "‡",
|
||||
"permil": "‰",
|
||||
"lsaquo": "‹",
|
||||
"rsaquo": "›",
|
||||
"euro": "€"
|
||||
}
|
133
tools/eslint/node_modules/character-entities-html4/package.json
generated
vendored
Normal file
133
tools/eslint/node_modules/character-entities-html4/package.json
generated
vendored
Normal file
@ -0,0 +1,133 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "character-entities-html4@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "character-entities-html4",
|
||||
"name": "character-entities-html4",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\stringify-entities"
|
||||
]
|
||||
],
|
||||
"_from": "character-entities-html4@>=1.0.0 <2.0.0",
|
||||
"_id": "character-entities-html4@1.1.0",
|
||||
"_inCache": true,
|
||||
"_location": "/character-entities-html4",
|
||||
"_nodeVersion": "4.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-18-east.internal.npmjs.com",
|
||||
"tmp": "tmp/character-entities-html4-1.1.0.tgz_1478288953070_0.18045797967351973"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.14.2",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "character-entities-html4@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "character-entities-html4",
|
||||
"name": "character-entities-html4",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/stringify-entities"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-1.1.0.tgz",
|
||||
"_shasum": "1ab08551d3ce1fa1df08d00fb9ca1defb147a06c",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "character-entities-html4@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\stringify-entities",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/character-entities-html4/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "HTML4 character entity information",
|
||||
"devDependencies": {
|
||||
"bail": "^1.0.1",
|
||||
"browserify": "^13.0.1",
|
||||
"concat-stream": "^1.5.2",
|
||||
"esmangle": "^1.0.1",
|
||||
"nyc": "^8.0.0",
|
||||
"remark-cli": "^2.0.0",
|
||||
"remark-preset-wooorm": "^1.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.17.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "1ab08551d3ce1fa1df08d00fb9ca1defb147a06c",
|
||||
"tarball": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-1.1.0.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.json"
|
||||
],
|
||||
"gitHead": "85835d7948614c96443f5191ea0e2265b41987da",
|
||||
"homepage": "https://github.com/wooorm/character-entities-html4#readme",
|
||||
"keywords": [
|
||||
"html",
|
||||
"html4",
|
||||
"entity",
|
||||
"entities",
|
||||
"character",
|
||||
"reference",
|
||||
"name",
|
||||
"replacement"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.json",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "character-entities-html4",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"presets": "wooorm"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/character-entities-html4.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-generate && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.json --bare -s characterEntitiesHTML4 > character-entities-html4.js",
|
||||
"build-generate": "node build",
|
||||
"build-mangle": "esmangle character-entities-html4.js > character-entities-html4.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.1.0",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"ignores": [
|
||||
"character-entities-html4.js"
|
||||
]
|
||||
}
|
||||
}
|
52
tools/eslint/node_modules/character-entities-html4/readme.md
generated
vendored
Normal file
52
tools/eslint/node_modules/character-entities-html4/readme.md
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
# character-entities-html4 [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
HTML4 character entity information.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install character-entities-html4
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
console.log(characterEntities.AElig); // Æ
|
||||
console.log(characterEntities.aelig); // æ
|
||||
console.log(characterEntities.amp); // &
|
||||
console.log(characterEntities.apos); // undefined
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `characterEntitiesHTML4`
|
||||
|
||||
Mapping between (case-sensitive) character entity names to replacements.
|
||||
|
||||
## Support
|
||||
|
||||
See [w3.org][html].
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/character-entities-html4.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/character-entities-html4
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/character-entities-html4.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/character-entities-html4
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
||||
|
||||
[html]: http://www.w3.org/TR/html4/sgml/entities.html
|
22
tools/eslint/node_modules/character-entities-legacy/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/character-entities-legacy/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
108
tools/eslint/node_modules/character-entities-legacy/index.json
generated
vendored
Normal file
108
tools/eslint/node_modules/character-entities-legacy/index.json
generated
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
{
|
||||
"AElig": "Æ",
|
||||
"AMP": "&",
|
||||
"Aacute": "Á",
|
||||
"Acirc": "Â",
|
||||
"Agrave": "À",
|
||||
"Aring": "Å",
|
||||
"Atilde": "Ã",
|
||||
"Auml": "Ä",
|
||||
"COPY": "©",
|
||||
"Ccedil": "Ç",
|
||||
"ETH": "Ð",
|
||||
"Eacute": "É",
|
||||
"Ecirc": "Ê",
|
||||
"Egrave": "È",
|
||||
"Euml": "Ë",
|
||||
"GT": ">",
|
||||
"Iacute": "Í",
|
||||
"Icirc": "Î",
|
||||
"Igrave": "Ì",
|
||||
"Iuml": "Ï",
|
||||
"LT": "<",
|
||||
"Ntilde": "Ñ",
|
||||
"Oacute": "Ó",
|
||||
"Ocirc": "Ô",
|
||||
"Ograve": "Ò",
|
||||
"Oslash": "Ø",
|
||||
"Otilde": "Õ",
|
||||
"Ouml": "Ö",
|
||||
"QUOT": "\"",
|
||||
"REG": "®",
|
||||
"THORN": "Þ",
|
||||
"Uacute": "Ú",
|
||||
"Ucirc": "Û",
|
||||
"Ugrave": "Ù",
|
||||
"Uuml": "Ü",
|
||||
"Yacute": "Ý",
|
||||
"aacute": "á",
|
||||
"acirc": "â",
|
||||
"acute": "´",
|
||||
"aelig": "æ",
|
||||
"agrave": "à",
|
||||
"amp": "&",
|
||||
"aring": "å",
|
||||
"atilde": "ã",
|
||||
"auml": "ä",
|
||||
"brvbar": "¦",
|
||||
"ccedil": "ç",
|
||||
"cedil": "¸",
|
||||
"cent": "¢",
|
||||
"copy": "©",
|
||||
"curren": "¤",
|
||||
"deg": "°",
|
||||
"divide": "÷",
|
||||
"eacute": "é",
|
||||
"ecirc": "ê",
|
||||
"egrave": "è",
|
||||
"eth": "ð",
|
||||
"euml": "ë",
|
||||
"frac12": "½",
|
||||
"frac14": "¼",
|
||||
"frac34": "¾",
|
||||
"gt": ">",
|
||||
"iacute": "í",
|
||||
"icirc": "î",
|
||||
"iexcl": "¡",
|
||||
"igrave": "ì",
|
||||
"iquest": "¿",
|
||||
"iuml": "ï",
|
||||
"laquo": "«",
|
||||
"lt": "<",
|
||||
"macr": "¯",
|
||||
"micro": "µ",
|
||||
"middot": "·",
|
||||
"nbsp": " ",
|
||||
"not": "¬",
|
||||
"ntilde": "ñ",
|
||||
"oacute": "ó",
|
||||
"ocirc": "ô",
|
||||
"ograve": "ò",
|
||||
"ordf": "ª",
|
||||
"ordm": "º",
|
||||
"oslash": "ø",
|
||||
"otilde": "õ",
|
||||
"ouml": "ö",
|
||||
"para": "¶",
|
||||
"plusmn": "±",
|
||||
"pound": "£",
|
||||
"quot": "\"",
|
||||
"raquo": "»",
|
||||
"reg": "®",
|
||||
"sect": "§",
|
||||
"shy": "",
|
||||
"sup1": "¹",
|
||||
"sup2": "²",
|
||||
"sup3": "³",
|
||||
"szlig": "ß",
|
||||
"thorn": "þ",
|
||||
"times": "×",
|
||||
"uacute": "ú",
|
||||
"ucirc": "û",
|
||||
"ugrave": "ù",
|
||||
"uml": "¨",
|
||||
"uuml": "ü",
|
||||
"yacute": "ý",
|
||||
"yen": "¥",
|
||||
"yuml": "ÿ"
|
||||
}
|
133
tools/eslint/node_modules/character-entities-legacy/package.json
generated
vendored
Normal file
133
tools/eslint/node_modules/character-entities-legacy/package.json
generated
vendored
Normal file
@ -0,0 +1,133 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "character-entities-legacy@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "character-entities-legacy",
|
||||
"name": "character-entities-legacy",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities"
|
||||
]
|
||||
],
|
||||
"_from": "character-entities-legacy@>=1.0.0 <2.0.0",
|
||||
"_id": "character-entities-legacy@1.1.0",
|
||||
"_inCache": true,
|
||||
"_location": "/character-entities-legacy",
|
||||
"_nodeVersion": "4.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-18-east.internal.npmjs.com",
|
||||
"tmp": "tmp/character-entities-legacy-1.1.0.tgz_1478279027342_0.273034636862576"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.14.2",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "character-entities-legacy@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "character-entities-legacy",
|
||||
"name": "character-entities-legacy",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/parse-entities",
|
||||
"/stringify-entities"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.0.tgz",
|
||||
"_shasum": "b18aad98f6b7bcc646c1e4c81f9f1956376a561a",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "character-entities-legacy@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/character-entities-legacy/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "HTML legacy character entity information",
|
||||
"devDependencies": {
|
||||
"bail": "^1.0.1",
|
||||
"browserify": "^13.0.1",
|
||||
"concat-stream": "^1.5.2",
|
||||
"esmangle": "^1.0.1",
|
||||
"nyc": "^8.0.0",
|
||||
"remark-cli": "^2.0.0",
|
||||
"remark-preset-wooorm": "^1.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.17.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "b18aad98f6b7bcc646c1e4c81f9f1956376a561a",
|
||||
"tarball": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.0.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.json"
|
||||
],
|
||||
"gitHead": "2cc6c73d528560ba4664f47a4e7979ab85b245b4",
|
||||
"homepage": "https://github.com/wooorm/character-entities-legacy#readme",
|
||||
"keywords": [
|
||||
"html",
|
||||
"entity",
|
||||
"entities",
|
||||
"character",
|
||||
"reference",
|
||||
"name",
|
||||
"replacement"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.json",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "character-entities-legacy",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"presets": "wooorm"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/character-entities-legacy.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-generate && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.json --bare -s characterEntitiesLegacy > character-entities-legacy.js",
|
||||
"build-generate": "node build",
|
||||
"build-mangle": "esmangle character-entities-legacy.js > character-entities-legacy.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.1.0",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"ignores": [
|
||||
"character-entities-legacy.js"
|
||||
]
|
||||
}
|
||||
}
|
54
tools/eslint/node_modules/character-entities-legacy/readme.md
generated
vendored
Normal file
54
tools/eslint/node_modules/character-entities-legacy/readme.md
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
# character-entities-legacy [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
HTML legacy character entity information: for legacy reasons some
|
||||
character entities are not required to have a trailing semicolon:
|
||||
`©` is perfectly okay for `©`.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install character-entities-legacy
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
console.log(characterEntitiesLegacy.copy); // ©
|
||||
console.log(characterEntitiesLegacy.frac34); // ¾
|
||||
console.log(characterEntitiesLegacy.sup1); // ¹
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `characterEntitiesLegacy`
|
||||
|
||||
Mapping between (case-sensitive) legacy character entity names to
|
||||
replacements.
|
||||
|
||||
## Support
|
||||
|
||||
See [whatwg/html][html].
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/character-entities-legacy.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/character-entities-legacy
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/character-entities-legacy.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/character-entities-legacy
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
||||
|
||||
[html]: https://raw.githubusercontent.com/whatwg/html/master/json-entities-legacy.inc
|
22
tools/eslint/node_modules/character-entities/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/character-entities/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
2224
tools/eslint/node_modules/character-entities/index.json
generated
vendored
Normal file
2224
tools/eslint/node_modules/character-entities/index.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
132
tools/eslint/node_modules/character-entities/package.json
generated
vendored
Normal file
132
tools/eslint/node_modules/character-entities/package.json
generated
vendored
Normal file
@ -0,0 +1,132 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "character-entities@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "character-entities",
|
||||
"name": "character-entities",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities"
|
||||
]
|
||||
],
|
||||
"_from": "character-entities@>=1.0.0 <2.0.0",
|
||||
"_id": "character-entities@1.2.0",
|
||||
"_inCache": true,
|
||||
"_location": "/character-entities",
|
||||
"_nodeVersion": "4.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/character-entities-1.2.0.tgz_1478289534115_0.5894565787166357"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.14.2",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "character-entities@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "character-entities",
|
||||
"name": "character-entities",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/parse-entities"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.0.tgz",
|
||||
"_shasum": "a683e2cf75dbe8b171963531364e58e18a1b155f",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "character-entities@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/character-entities/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "HTML character entity information",
|
||||
"devDependencies": {
|
||||
"bail": "^1.0.1",
|
||||
"browserify": "^13.0.1",
|
||||
"concat-stream": "^1.5.2",
|
||||
"esmangle": "^1.0.1",
|
||||
"nyc": "^8.0.0",
|
||||
"remark-cli": "^2.0.0",
|
||||
"remark-preset-wooorm": "^1.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.17.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "a683e2cf75dbe8b171963531364e58e18a1b155f",
|
||||
"tarball": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.0.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.json"
|
||||
],
|
||||
"gitHead": "c091dd2371a10a25095de2967ebb95458389fdb4",
|
||||
"homepage": "https://github.com/wooorm/character-entities#readme",
|
||||
"keywords": [
|
||||
"html",
|
||||
"entity",
|
||||
"entities",
|
||||
"character",
|
||||
"reference",
|
||||
"name",
|
||||
"replacement"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.json",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "character-entities",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"presets": "wooorm"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/character-entities.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-generate && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.json --bare -s characterEntities > character-entities.js",
|
||||
"build-generate": "node build",
|
||||
"build-mangle": "esmangle character-entities.js > character-entities.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.2.0",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"ignores": [
|
||||
"character-entities.js"
|
||||
]
|
||||
}
|
||||
}
|
53
tools/eslint/node_modules/character-entities/readme.md
generated
vendored
Normal file
53
tools/eslint/node_modules/character-entities/readme.md
generated
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# character-entities [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
<!--lint disable heading-increment list-item-spacing no-duplicate-headings-->
|
||||
|
||||
HTML character entity information.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install character-entities
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
console.log(characterEntities.AElig); // Æ
|
||||
console.log(characterEntities.aelig); // æ
|
||||
console.log(characterEntities.amp); // &
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### characterEntities
|
||||
|
||||
Mapping between (case-sensitive) character entity names to replacements.
|
||||
|
||||
## Support
|
||||
|
||||
See [html.spec.whatwg.org][html].
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/character-entities.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/character-entities
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/character-entities.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/character-entities
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
||||
|
||||
[html]: https://html.spec.whatwg.org/multipage/syntax.html#named-character-references
|
22
tools/eslint/node_modules/character-reference-invalid/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/character-reference-invalid/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
30
tools/eslint/node_modules/character-reference-invalid/index.json
generated
vendored
Normal file
30
tools/eslint/node_modules/character-reference-invalid/index.json
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"0": "<22>",
|
||||
"128": "€",
|
||||
"130": "‚",
|
||||
"131": "ƒ",
|
||||
"132": "„",
|
||||
"133": "…",
|
||||
"134": "†",
|
||||
"135": "‡",
|
||||
"136": "ˆ",
|
||||
"137": "‰",
|
||||
"138": "Š",
|
||||
"139": "‹",
|
||||
"140": "Œ",
|
||||
"142": "Ž",
|
||||
"145": "‘",
|
||||
"146": "’",
|
||||
"147": "“",
|
||||
"148": "”",
|
||||
"149": "•",
|
||||
"150": "–",
|
||||
"151": "—",
|
||||
"152": "˜",
|
||||
"153": "™",
|
||||
"154": "š",
|
||||
"155": "›",
|
||||
"156": "œ",
|
||||
"158": "ž",
|
||||
"159": "Ÿ"
|
||||
}
|
136
tools/eslint/node_modules/character-reference-invalid/package.json
generated
vendored
Normal file
136
tools/eslint/node_modules/character-reference-invalid/package.json
generated
vendored
Normal file
@ -0,0 +1,136 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "character-reference-invalid@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "character-reference-invalid",
|
||||
"name": "character-reference-invalid",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities"
|
||||
]
|
||||
],
|
||||
"_from": "character-reference-invalid@>=1.0.0 <2.0.0",
|
||||
"_id": "character-reference-invalid@1.1.0",
|
||||
"_inCache": true,
|
||||
"_location": "/character-reference-invalid",
|
||||
"_nodeVersion": "4.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-18-east.internal.npmjs.com",
|
||||
"tmp": "tmp/character-reference-invalid-1.1.0.tgz_1478290328584_0.23455824935808778"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.14.2",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "character-reference-invalid@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "character-reference-invalid",
|
||||
"name": "character-reference-invalid",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/parse-entities"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.0.tgz",
|
||||
"_shasum": "dec9ad1dfb9f8d06b4fcdaa2adc3c4fd97af1e68",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "character-reference-invalid@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/character-reference-invalid/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "HTML invalid numeric character reference information",
|
||||
"devDependencies": {
|
||||
"bail": "^1.0.1",
|
||||
"browserify": "^13.0.1",
|
||||
"esmangle": "^1.0.1",
|
||||
"jsdom": "^9.4.1",
|
||||
"nyc": "^8.0.0",
|
||||
"remark-cli": "^2.0.0",
|
||||
"remark-preset-wooorm": "^1.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.17.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "dec9ad1dfb9f8d06b4fcdaa2adc3c4fd97af1e68",
|
||||
"tarball": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.0.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.json"
|
||||
],
|
||||
"gitHead": "66104251bb83f85958dcb9328a5873003fea27a2",
|
||||
"homepage": "https://github.com/wooorm/character-reference-invalid#readme",
|
||||
"keywords": [
|
||||
"html",
|
||||
"entity",
|
||||
"numeric",
|
||||
"character",
|
||||
"reference",
|
||||
"replacement",
|
||||
"invalid",
|
||||
"name"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.json",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "character-reference-invalid",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"presets": "wooorm"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/character-reference-invalid.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.json --bare -s characterReferenceInvalid > character-reference-invalid.js",
|
||||
"build-generate": "node build",
|
||||
"build-mangle": "esmangle character-reference-invalid.js > character-reference-invalid.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.1.0",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"rules": {
|
||||
"guard-for-in": "off"
|
||||
},
|
||||
"ignores": [
|
||||
"character-reference-invalid.js"
|
||||
]
|
||||
}
|
||||
}
|
51
tools/eslint/node_modules/character-reference-invalid/readme.md
generated
vendored
Normal file
51
tools/eslint/node_modules/character-reference-invalid/readme.md
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
# character-reference-invalid [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
HTML invalid numeric character reference information.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install character-reference-invalid
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
console.log(characterReferenceInvalid[0x80]); // €
|
||||
console.log(characterReferenceInvalid[0x89]); // ‰
|
||||
console.log(characterReferenceInvalid[0x99]); // ™
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `characterReferenceInvalid`
|
||||
|
||||
Mapping between invalid numeric character reference to replacements.
|
||||
|
||||
## Support
|
||||
|
||||
See [html.spec.whatwg.org][html].
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/character-reference-invalid.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/character-reference-invalid
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/character-reference-invalid.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/character-reference-invalid
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
||||
|
||||
[html]: https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides
|
22
tools/eslint/node_modules/collapse-white-space/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/collapse-white-space/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
16
tools/eslint/node_modules/collapse-white-space/history.md
generated
vendored
Normal file
16
tools/eslint/node_modules/collapse-white-space/history.md
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
<!--remark setext-->
|
||||
|
||||
<!--lint disable no-multiple-toplevel-headings-->
|
||||
|
||||
1.0.2 / 2016-07-23
|
||||
==================
|
||||
|
||||
* Fix `readme.md` ([`03823ce`](https://github.com/wooorm/collapse-white-space/commit/03823ce))
|
||||
|
||||
1.0.1 / 2016-07-23
|
||||
==================
|
||||
|
||||
* Rewrite module ([`6d48e8d`](https://github.com/wooorm/collapse-white-space/commit/6d48e8d))
|
||||
|
||||
1.0.0 / 2015-07-12
|
||||
==================
|
27
tools/eslint/node_modules/collapse-white-space/index.js
generated
vendored
Normal file
27
tools/eslint/node_modules/collapse-white-space/index.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @author Titus Wormer
|
||||
* @copyright 2015 Titus Wormer
|
||||
* @license MIT
|
||||
* @module collapse-white-space
|
||||
* @fileoverview Replace multiple white-space characters
|
||||
* with a single space.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/* Expose. */
|
||||
module.exports = collapse;
|
||||
|
||||
/**
|
||||
* Replace multiple white-space characters with a single space.
|
||||
*
|
||||
* @example
|
||||
* collapse(' \t\nbar \nbaz\t'); // ' bar baz '
|
||||
*
|
||||
* @param {string} value - Value with uncollapsed white-space,
|
||||
* coerced to string.
|
||||
* @return {string} - Value with collapsed white-space.
|
||||
*/
|
||||
function collapse(value) {
|
||||
return String(value).replace(/\s+/g, ' ');
|
||||
}
|
136
tools/eslint/node_modules/collapse-white-space/package.json
generated
vendored
Normal file
136
tools/eslint/node_modules/collapse-white-space/package.json
generated
vendored
Normal file
@ -0,0 +1,136 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "collapse-white-space@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "collapse-white-space",
|
||||
"name": "collapse-white-space",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\remark-parse"
|
||||
]
|
||||
],
|
||||
"_from": "collapse-white-space@>=1.0.0 <2.0.0",
|
||||
"_id": "collapse-white-space@1.0.2",
|
||||
"_inCache": true,
|
||||
"_location": "/collapse-white-space",
|
||||
"_nodeVersion": "5.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/collapse-white-space-1.0.2.tgz_1469310043598_0.74730454524979"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "3.3.6",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "collapse-white-space@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "collapse-white-space",
|
||||
"name": "collapse-white-space",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/remark-parse"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.2.tgz",
|
||||
"_shasum": "9c463fb9c6d190d2dcae21a356a01bcae9eeef6d",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "collapse-white-space@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\remark-parse",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/collapse-white-space/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "Replace multiple white-space characters with a single space",
|
||||
"devDependencies": {
|
||||
"browserify": "^13.0.1",
|
||||
"esmangle": "^1.0.1",
|
||||
"nyc": "^7.0.0",
|
||||
"remark-cli": "^1.0.0",
|
||||
"remark-comment-config": "^4.0.0",
|
||||
"remark-github": "^5.0.0",
|
||||
"remark-lint": "^4.0.0",
|
||||
"remark-validate-links": "^4.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.16.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "9c463fb9c6d190d2dcae21a356a01bcae9eeef6d",
|
||||
"tarball": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.2.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "cd218a06e569cf9cbd4657436557299d3bb504cf",
|
||||
"homepage": "https://github.com/wooorm/collapse-white-space#readme",
|
||||
"keywords": [
|
||||
"collapse",
|
||||
"white",
|
||||
"space"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "collapse-white-space",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"plugins": [
|
||||
"comment-config",
|
||||
"github",
|
||||
"lint",
|
||||
"validate-links"
|
||||
],
|
||||
"settings": {
|
||||
"bullet": "*"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/collapse-white-space.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.js --bare -s collapseWhiteSpace > collapse-white-space.js",
|
||||
"build-mangle": "esmangle collapse-white-space.js > collapse-white-space.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.0.2",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"ignores": [
|
||||
"collapse-white-space.js",
|
||||
"collapse-white-space.min.js"
|
||||
]
|
||||
}
|
||||
}
|
67
tools/eslint/node_modules/collapse-white-space/readme.md
generated
vendored
Normal file
67
tools/eslint/node_modules/collapse-white-space/readme.md
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
# collapse-white-space [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
<!--lint disable heading-increment list-item-spacing no-duplicate-headings-->
|
||||
|
||||
Replace multiple white-space characters with a single space.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install collapse-white-space
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Dependencies.
|
||||
|
||||
```javascript
|
||||
var collapse = require('collapse-white-space');
|
||||
```
|
||||
|
||||
Collapse white space:
|
||||
|
||||
```javascript
|
||||
var result = collapse('\tfoo \n\tbar \t\r\nbaz');
|
||||
```
|
||||
|
||||
Yields:
|
||||
|
||||
```text
|
||||
foo bar baz
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `collapse(value)`
|
||||
|
||||
Replace multiple white-space characters with a single space.
|
||||
|
||||
###### Parameters
|
||||
|
||||
* `value` (`string`) — Value with uncollapsed white-space, coerced to string.
|
||||
|
||||
###### Returns
|
||||
|
||||
`string` — Value with collapsed white-space.
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/collapse-white-space.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/collapse-white-space
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/collapse-white-space.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/collapse-white-space
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
21
tools/eslint/node_modules/eslint-plugin-markdown/LICENSE
generated
vendored
Normal file
21
tools/eslint/node_modules/eslint-plugin-markdown/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright JS Foundation and other contributors, https://js.foundation
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
121
tools/eslint/node_modules/eslint-plugin-markdown/README.md
generated
vendored
Normal file
121
tools/eslint/node_modules/eslint-plugin-markdown/README.md
generated
vendored
Normal file
@ -0,0 +1,121 @@
|
||||
# eslint-plugin-markdown
|
||||
|
||||

|
||||
|
||||
An [ESLint](http://eslint.org/) plugin to lint JavaScript in Markdown.
|
||||
|
||||
Supported extensions are `.markdown`, `.mdown`, `.mkdn`, and `.md`.
|
||||
|
||||
## Usage
|
||||
|
||||
Install the plugin:
|
||||
|
||||
```sh
|
||||
npm install --save-dev eslint eslint-plugin-markdown
|
||||
```
|
||||
|
||||
Add it to your `.eslintrc`:
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": [
|
||||
"markdown"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Run ESLint on `.md` files:
|
||||
|
||||
```sh
|
||||
eslint --ext md .
|
||||
```
|
||||
|
||||
It will lint `js`, `javascript`, `jsx`, or `node` [fenced code blocks](https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks) in your Markdown documents:
|
||||
|
||||
```js
|
||||
// This gets linted
|
||||
var answer = 6 * 7;
|
||||
console.log(answer);
|
||||
```
|
||||
|
||||
```JavaScript
|
||||
// This also gets linted
|
||||
|
||||
/* eslint quotes: [2, "double"] */
|
||||
|
||||
function hello() {
|
||||
console.log("Hello, world!");
|
||||
}
|
||||
hello();
|
||||
```
|
||||
|
||||
```jsx
|
||||
// This gets linted too
|
||||
var div = <div className="jsx"></div>;
|
||||
```
|
||||
|
||||
```node
|
||||
// And this
|
||||
console.log(process.version);
|
||||
```
|
||||
|
||||
Blocks that don't specify either `js`, `javascript`, `jsx`, or `node` syntax are ignored:
|
||||
|
||||
```
|
||||
This is plain text and doesn't get linted.
|
||||
```
|
||||
|
||||
```python
|
||||
print("This doesn't get linted either.")
|
||||
```
|
||||
|
||||
## Configuration Comments
|
||||
|
||||
The processor will convert HTML comments immediately preceding a code block into JavaScript block comments and insert them at the beginning of the source code that it passes to ESLint. This permits configuring ESLint via configuration comments while keeping the configuration comments themselves hidden when the markdown is rendered. Comment bodies are passed through unmodified, so the plugin supports any [configuration comments](http://eslint.org/docs/user-guide/configuring) supported by ESLint itself.
|
||||
|
||||
This example enables the `browser` environment, disables the `no-alert` rule, and configures the `quotes` rule to prefer single quotes:
|
||||
|
||||
<!-- eslint-env browser -->
|
||||
<!-- eslint-disable no-alert -->
|
||||
<!-- eslint quotes: ["error", "single"] -->
|
||||
|
||||
```js
|
||||
alert('Hello, world!');
|
||||
```
|
||||
|
||||
Each code block in a file is linted separately, so configuration comments apply only to the code block that immediately follows.
|
||||
|
||||
Assuming `no-alert` is enabled in `.eslintrc`, the first code block will have no error from `no-alert`:
|
||||
|
||||
<!-- eslint-env browser -->
|
||||
<!-- eslint-disable no-alert -->
|
||||
|
||||
```js
|
||||
alert("Hello, world!");
|
||||
```
|
||||
|
||||
But the next code block will have an error from `no-alert`:
|
||||
|
||||
<!-- eslint-env browser -->
|
||||
|
||||
```js
|
||||
alert("Hello, world!");
|
||||
```
|
||||
|
||||
## Unsatisfiable Rules
|
||||
|
||||
Since code blocks are not files themselves but embedded inside a Markdown document, some rules do not apply to Markdown code blocks, and messages from these rules are automatically suppressed:
|
||||
|
||||
- `eol-last`
|
||||
|
||||
## Contributing
|
||||
|
||||
```sh
|
||||
$ git clone https://github.com/eslint/eslint-plugin-markdown.git
|
||||
$ cd eslint-plugin-markdown
|
||||
$ npm link
|
||||
$ npm link eslint-plugin-markdown
|
||||
$ npm test
|
||||
```
|
||||
|
||||
This project follows the [ESLint contribution guidelines](http://eslint.org/docs/developer-guide/contributing/).
|
8
tools/eslint/node_modules/eslint-plugin-markdown/index.js
generated
vendored
Normal file
8
tools/eslint/node_modules/eslint-plugin-markdown/index.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @fileoverview Exports the processor.
|
||||
* @author Brandon Mills
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./lib");
|
17
tools/eslint/node_modules/eslint-plugin-markdown/lib/index.js
generated
vendored
Normal file
17
tools/eslint/node_modules/eslint-plugin-markdown/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @fileoverview Enables the processor for Markdown file extensions.
|
||||
* @author Brandon Mills
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
var processor = require("./processor");
|
||||
|
||||
module.exports = {
|
||||
"processors": {
|
||||
".markdown": processor,
|
||||
".mdown": processor,
|
||||
".mkdn": processor,
|
||||
".md": processor
|
||||
}
|
||||
};
|
151
tools/eslint/node_modules/eslint-plugin-markdown/lib/processor.js
generated
vendored
Normal file
151
tools/eslint/node_modules/eslint-plugin-markdown/lib/processor.js
generated
vendored
Normal file
@ -0,0 +1,151 @@
|
||||
/**
|
||||
* @fileoverview Processes Markdown files for consumption by ESLint.
|
||||
* @author Brandon Mills
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
var assign = require("object-assign");
|
||||
var parse5 = require("parse5");
|
||||
var remark = require("remark");
|
||||
|
||||
var SUPPORTED_SYNTAXES = ["js", "javascript", "node", "jsx"];
|
||||
var UNSATISFIABLE_RULES = [
|
||||
"eol-last" // The Markdown parser strips trailing newlines in code fences
|
||||
];
|
||||
|
||||
var blocks = [];
|
||||
|
||||
/**
|
||||
* Performs a depth-first traversal of the Markdown AST.
|
||||
* @param {ASTNode} node A Markdown AST node.
|
||||
* @param {object} callbacks A map of node types to callbacks.
|
||||
* @param {object} [parent] The node's parent AST node.
|
||||
* @returns {void}
|
||||
*/
|
||||
function traverse(node, callbacks, parent) {
|
||||
var i;
|
||||
|
||||
if (callbacks[node.type]) {
|
||||
callbacks[node.type](node, parent);
|
||||
}
|
||||
|
||||
if (typeof node.children !== "undefined") {
|
||||
for (i = 0; i < node.children.length; i++) {
|
||||
traverse(node.children[i], callbacks, node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts leading HTML comments to JS block comments.
|
||||
* @param {string} html The text content of an HTML AST node.
|
||||
* @returns {string[]} An array of JS block comments.
|
||||
*/
|
||||
function getComments(html) {
|
||||
var ast = parse5.parse(html, { locationInfo: true });
|
||||
var nodes = ast.childNodes.filter(function(node) {
|
||||
return node.__location; // eslint-disable-line no-underscore-dangle
|
||||
});
|
||||
var comments = [];
|
||||
var index;
|
||||
|
||||
for (index = nodes.length - 1; index >= 0; index--) {
|
||||
if (
|
||||
nodes[index].nodeName === "#comment"
|
||||
&& nodes[index].data.trim().slice(0, "eslint".length) === "eslint"
|
||||
) {
|
||||
comments.unshift("/*" + nodes[index].data + "*/");
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return comments;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts lintable JavaScript code blocks from Markdown text.
|
||||
* @param {string} text The text of the file.
|
||||
* @returns {string[]} Source code strings to lint.
|
||||
*/
|
||||
function preprocess(text) {
|
||||
var ast = remark().parse(text);
|
||||
|
||||
blocks = [];
|
||||
traverse(ast, {
|
||||
"code": function(node, parent) {
|
||||
var comments = [];
|
||||
var index, previousNode;
|
||||
|
||||
if (node.lang && SUPPORTED_SYNTAXES.indexOf(node.lang.toLowerCase()) >= 0) {
|
||||
index = parent.children.indexOf(node);
|
||||
previousNode = parent.children[index - 1];
|
||||
if (previousNode && previousNode.type === "html") {
|
||||
comments = getComments(previousNode.value) || [];
|
||||
}
|
||||
|
||||
blocks.push(assign({}, node, { comments: comments }));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return blocks.map(function(block) {
|
||||
return block.comments.concat(block.value).join("\n");
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a map function that adjusts messages in a code block.
|
||||
* @param {Block} block A code block.
|
||||
* @returns {function} A function that adjusts messages in a code block.
|
||||
*/
|
||||
function adjustBlock(block) {
|
||||
var leadingCommentLines = block.comments.reduce(function(count, comment) {
|
||||
return count + comment.split("\n").length;
|
||||
}, 0);
|
||||
|
||||
/**
|
||||
* Adjusts ESLint messages to point to the correct location in the Markdown.
|
||||
* @param {Message} message A message from ESLint.
|
||||
* @returns {Message} The same message, but adjusted ot the correct location.
|
||||
*/
|
||||
return function adjustMessage(message) {
|
||||
var lineInCode = message.line - leadingCommentLines;
|
||||
if (lineInCode < 1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return assign({}, message, {
|
||||
line: lineInCode + block.position.start.line,
|
||||
column: message.column + block.position.indent[lineInCode - 1] - 1
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Excludes unsatisfiable rules from the list of messages.
|
||||
* @param {Message} message A message from the linter.
|
||||
* @returns {boolean} True if the message should be included in output.
|
||||
*/
|
||||
function excludeUnsatisfiableRules(message) {
|
||||
return message && UNSATISFIABLE_RULES.indexOf(message.ruleId) < 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms generated messages for output.
|
||||
* @param {Array<Message[]>} messages An array containing one array of messages
|
||||
* for each code block returned from `preprocess`.
|
||||
* @returns {Message[]} A flattened array of messages with mapped locations.
|
||||
*/
|
||||
function postprocess(messages) {
|
||||
return [].concat.apply([], messages.map(function(group, i) {
|
||||
var adjust = adjustBlock(blocks[i]);
|
||||
return group.map(adjust).filter(excludeUnsatisfiableRules);
|
||||
}));
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
preprocess: preprocess,
|
||||
postprocess: postprocess
|
||||
};
|
106
tools/eslint/node_modules/eslint-plugin-markdown/package.json
generated
vendored
Normal file
106
tools/eslint/node_modules/eslint-plugin-markdown/package.json
generated
vendored
Normal file
@ -0,0 +1,106 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "eslint-plugin-markdown",
|
||||
"scope": null,
|
||||
"escapedName": "eslint-plugin-markdown",
|
||||
"name": "eslint-plugin-markdown",
|
||||
"rawSpec": "",
|
||||
"spec": "latest",
|
||||
"type": "tag"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint"
|
||||
]
|
||||
],
|
||||
"_from": "eslint-plugin-markdown@latest",
|
||||
"_id": "eslint-plugin-markdown@1.0.0-beta.4",
|
||||
"_inCache": true,
|
||||
"_location": "/eslint-plugin-markdown",
|
||||
"_nodeVersion": "7.7.1",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/eslint-plugin-markdown-1.0.0-beta.4.tgz_1488662554242_0.9874107467476279"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "btmills",
|
||||
"email": "mills.brandont@gmail.com"
|
||||
},
|
||||
"_npmVersion": "4.1.2",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "eslint-plugin-markdown",
|
||||
"scope": null,
|
||||
"escapedName": "eslint-plugin-markdown",
|
||||
"name": "eslint-plugin-markdown",
|
||||
"rawSpec": "",
|
||||
"spec": "latest",
|
||||
"type": "tag"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/eslint-plugin-markdown/-/eslint-plugin-markdown-1.0.0-beta.4.tgz",
|
||||
"_shasum": "82a19971399e4b1b62f7d4ac6424687c2c07ee7a",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "eslint-plugin-markdown",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint",
|
||||
"author": {
|
||||
"name": "Brandon Mills",
|
||||
"url": "https://github.com/btmills"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/eslint/eslint-plugin-markdown/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"object-assign": "^4.0.1",
|
||||
"parse5": "^2.2.2",
|
||||
"remark": "^5.0.0"
|
||||
},
|
||||
"description": "An ESLint plugin to lint JavaScript in Markdown code fences.",
|
||||
"devDependencies": {
|
||||
"chai": "^3.0.0",
|
||||
"eslint": "^2.2.0",
|
||||
"eslint-config-eslint": "^3.0.0",
|
||||
"mocha": "^2.2.5"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "82a19971399e4b1b62f7d4ac6424687c2c07ee7a",
|
||||
"tarball": "https://registry.npmjs.org/eslint-plugin-markdown/-/eslint-plugin-markdown-1.0.0-beta.4.tgz"
|
||||
},
|
||||
"files": [
|
||||
"lib/*.js",
|
||||
"index.js",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
],
|
||||
"gitHead": "c84a63171c85a1ffec9b4fd41b55f29bb2117b21",
|
||||
"homepage": "https://github.com/eslint/eslint-plugin-markdown#readme",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
"eslintplugin",
|
||||
"markdown",
|
||||
"lint",
|
||||
"linter"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "btmills",
|
||||
"email": "mills.brandont@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "eslint-plugin-markdown",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/eslint/eslint-plugin-markdown.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "eslint --ext .js --ext .md . && mocha tests"
|
||||
},
|
||||
"version": "1.0.0-beta.4"
|
||||
}
|
192
tools/eslint/node_modules/extend/.eslintrc
generated
vendored
Normal file
192
tools/eslint/node_modules/extend/.eslintrc
generated
vendored
Normal file
@ -0,0 +1,192 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": false,
|
||||
"node": true,
|
||||
"amd": false,
|
||||
"mocha": false,
|
||||
"jasmine": false
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"accessor-pairs": [2, { getWithoutSet: false, setWithoutGet: true }],
|
||||
"array-bracket-spacing": [2, "never", {
|
||||
"singleValue": false,
|
||||
"objectsInArrays": false,
|
||||
"arraysInArrays": false
|
||||
}],
|
||||
"block-scoped-var": [0],
|
||||
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
|
||||
"camelcase": [2],
|
||||
"comma-dangle": [2, "never"],
|
||||
"comma-spacing": [2],
|
||||
"comma-style": [2, "last"],
|
||||
"complexity": [2, 15],
|
||||
"computed-property-spacing": [2, "never"],
|
||||
"consistent-return": [2],
|
||||
"consistent-this": [0, "that"],
|
||||
"constructor-super": [2],
|
||||
"curly": [2, "all"],
|
||||
"default-case": [2],
|
||||
"dot-notation": [2, { "allowKeywords": true }],
|
||||
"eol-last": [2],
|
||||
"eqeqeq": [2],
|
||||
"func-names": [0],
|
||||
"func-style": [2, "expression"],
|
||||
"generator-star-spacing": [2, { "before": false, "after": true }],
|
||||
"global-strict": [0, "never"],
|
||||
"guard-for-in": [0],
|
||||
"handle-callback-err": [0],
|
||||
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
|
||||
"linebreak-style": [2, "unix"],
|
||||
"lines-around-comment": [2, {
|
||||
"beforeBlockComment": false,
|
||||
"afterBlockComment": false,
|
||||
"beforeLineComment": false,
|
||||
"beforeLineComment": false,
|
||||
"allowBlockStart": true,
|
||||
"allowBlockEnd": true
|
||||
}],
|
||||
"quotes": [2, "single", "avoid-escape"],
|
||||
"max-depth": [1, 4],
|
||||
"max-len": [0, 80, 4],
|
||||
"max-nested-callbacks": [2, 2],
|
||||
"max-params": [2, 2],
|
||||
"max-statements": [2, 21],
|
||||
"new-parens": [2],
|
||||
"new-cap": [2],
|
||||
"newline-after-var": [0],
|
||||
"no-alert": [2],
|
||||
"no-array-constructor": [2],
|
||||
"no-bitwise": [0],
|
||||
"no-caller": [2],
|
||||
"no-catch-shadow": [2],
|
||||
"no-cond-assign": [2],
|
||||
"no-console": [2],
|
||||
"no-constant-condition": [2],
|
||||
"no-continue": [2],
|
||||
"no-control-regex": [2],
|
||||
"no-debugger": [2],
|
||||
"no-delete-var": [2],
|
||||
"no-div-regex": [0],
|
||||
"no-dupe-args": [2],
|
||||
"no-dupe-keys": [2],
|
||||
"no-duplicate-case": [2],
|
||||
"no-else-return": [0],
|
||||
"no-empty": [2],
|
||||
"no-empty-character-class": [2],
|
||||
"no-empty-label": [2],
|
||||
"no-eq-null": [0],
|
||||
"no-eval": [2],
|
||||
"no-ex-assign": [2],
|
||||
"no-extend-native": [2],
|
||||
"no-extra-bind": [2],
|
||||
"no-extra-boolean-cast": [2],
|
||||
"no-extra-parens": [0],
|
||||
"no-extra-semi": [2],
|
||||
"no-fallthrough": [2],
|
||||
"no-floating-decimal": [2],
|
||||
"no-func-assign": [2],
|
||||
"no-implied-eval": [2],
|
||||
"no-inline-comments": [0],
|
||||
"no-inner-declarations": [2, "functions"],
|
||||
"no-invalid-regexp": [2],
|
||||
"no-irregular-whitespace": [2],
|
||||
"no-iterator": [2],
|
||||
"no-label-var": [2],
|
||||
"no-labels": [2],
|
||||
"no-lone-blocks": [2],
|
||||
"no-lonely-if": [2],
|
||||
"no-loop-func": [2],
|
||||
"no-mixed-requires": [0, false],
|
||||
"no-mixed-spaces-and-tabs": [2, false],
|
||||
"no-multi-spaces": [2],
|
||||
"no-multi-str": [2],
|
||||
"no-multiple-empty-lines": [2, {"max": 1}],
|
||||
"no-native-reassign": [2],
|
||||
"no-negated-in-lhs": [2],
|
||||
"no-nested-ternary": [0],
|
||||
"no-new": [2],
|
||||
"no-new-func": [2],
|
||||
"no-new-object": [2],
|
||||
"no-new-require": [0],
|
||||
"no-new-wrappers": [2],
|
||||
"no-obj-calls": [2],
|
||||
"no-octal": [2],
|
||||
"no-octal-escape": [2],
|
||||
"no-param-reassign": [2],
|
||||
"no-path-concat": [0],
|
||||
"no-plusplus": [0],
|
||||
"no-process-env": [0],
|
||||
"no-process-exit": [2],
|
||||
"no-proto": [2],
|
||||
"no-redeclare": [2],
|
||||
"no-regex-spaces": [2],
|
||||
"no-reserved-keys": [2],
|
||||
"no-restricted-modules": [0],
|
||||
"no-return-assign": [2, "always"],
|
||||
"no-script-url": [2],
|
||||
"no-self-compare": [0],
|
||||
"no-sequences": [2],
|
||||
"no-shadow": [2],
|
||||
"no-shadow-restricted-names": [2],
|
||||
"no-space-before-semi": [2],
|
||||
"no-spaced-func": [2],
|
||||
"no-sparse-arrays": [2],
|
||||
"no-sync": [0],
|
||||
"no-ternary": [0],
|
||||
"no-this-before-super": [2],
|
||||
"no-throw-literal": [2],
|
||||
"no-trailing-spaces": [2, { "skipBlankLines": false }],
|
||||
"no-undef": [2],
|
||||
"no-undef-init": [2],
|
||||
"no-undefined": [0],
|
||||
"no-underscore-dangle": [2],
|
||||
"no-unexpected-multiline": [2],
|
||||
"no-unneeded-ternary": [2],
|
||||
"no-unreachable": [2],
|
||||
"no-unused-expressions": [2],
|
||||
"no-unused-vars": [2, { "vars": "all", "args": "after-used" }],
|
||||
"no-use-before-define": [2],
|
||||
"no-void": [0],
|
||||
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
|
||||
"no-with": [2],
|
||||
"no-wrap-func": [2],
|
||||
"object-curly-spacing": [2, "always"],
|
||||
"object-shorthand": [2, "never"],
|
||||
"one-var": [0],
|
||||
"operator-assignment": [0, "always"],
|
||||
"operator-linebreak": [2, "none"],
|
||||
"padded-blocks": [0],
|
||||
"prefer-const": [0],
|
||||
"quote-props": [0],
|
||||
"radix": [0],
|
||||
"semi": [2],
|
||||
"semi-spacing": [2, { "before": false, "after": true }],
|
||||
"sort-vars": [0],
|
||||
"space-after-keywords": [2, "always"],
|
||||
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
|
||||
"space-before-blocks": [0, "always"],
|
||||
"space-in-brackets": [0, "never", {
|
||||
"singleValue": true,
|
||||
"arraysInArrays": false,
|
||||
"arraysInObjects": false,
|
||||
"objectsInArrays": true,
|
||||
"objectsInObjects": true,
|
||||
"propertyName": false
|
||||
}],
|
||||
"space-in-parens": [2, "never"],
|
||||
"space-infix-ops": [2],
|
||||
"space-return-throw-case": [2],
|
||||
"space-unary-ops": [2, { "words": true, "nonwords": false }],
|
||||
"spaced-comment": [2, "always"],
|
||||
"spaced-line-comment": [0, "always"],
|
||||
"strict": [2, "global"],
|
||||
"use-isnan": [2],
|
||||
"valid-jsdoc": [0],
|
||||
"valid-typeof": [2],
|
||||
"vars-on-top": [0],
|
||||
"wrap-iife": [2],
|
||||
"wrap-regex": [2],
|
||||
"yoda": [2, "never", { "exceptRange": true, "onlyEquality": false }]
|
||||
}
|
||||
}
|
103
tools/eslint/node_modules/extend/.jscs.json
generated
vendored
Normal file
103
tools/eslint/node_modules/extend/.jscs.json
generated
vendored
Normal file
@ -0,0 +1,103 @@
|
||||
{
|
||||
"additionalRules": [],
|
||||
|
||||
"requireSemicolons": true,
|
||||
|
||||
"disallowMultipleSpaces": true,
|
||||
|
||||
"disallowIdentifierNames": [],
|
||||
|
||||
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
|
||||
|
||||
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
|
||||
|
||||
"disallowSpaceAfterKeywords": [],
|
||||
|
||||
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
|
||||
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
||||
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
|
||||
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
||||
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
|
||||
|
||||
"requireSpaceBetweenArguments": true,
|
||||
|
||||
"disallowSpacesInsideParentheses": true,
|
||||
|
||||
"disallowSpacesInsideArrayBrackets": true,
|
||||
|
||||
"disallowQuotedKeysInObjects": "allButReserved",
|
||||
|
||||
"disallowSpaceAfterObjectKeys": true,
|
||||
|
||||
"requireCommaBeforeLineBreak": true,
|
||||
|
||||
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
||||
"requireSpaceAfterPrefixUnaryOperators": [],
|
||||
|
||||
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
||||
"requireSpaceBeforePostfixUnaryOperators": [],
|
||||
|
||||
"disallowSpaceBeforeBinaryOperators": [],
|
||||
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
||||
|
||||
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
||||
"disallowSpaceAfterBinaryOperators": [],
|
||||
|
||||
"disallowImplicitTypeConversion": ["binary", "string"],
|
||||
|
||||
"disallowKeywords": ["with", "eval"],
|
||||
|
||||
"requireKeywordsOnNewLine": [],
|
||||
"disallowKeywordsOnNewLine": ["else"],
|
||||
|
||||
"requireLineFeedAtFileEnd": true,
|
||||
|
||||
"disallowTrailingWhitespace": true,
|
||||
|
||||
"disallowTrailingComma": true,
|
||||
|
||||
"excludeFiles": ["node_modules/**", "vendor/**"],
|
||||
|
||||
"disallowMultipleLineStrings": true,
|
||||
|
||||
"requireDotNotation": true,
|
||||
|
||||
"requireParenthesesAroundIIFE": true,
|
||||
|
||||
"validateLineBreaks": "LF",
|
||||
|
||||
"validateQuoteMarks": {
|
||||
"escape": true,
|
||||
"mark": "'"
|
||||
},
|
||||
|
||||
"disallowOperatorBeforeLineBreak": [],
|
||||
|
||||
"requireSpaceBeforeKeywords": [
|
||||
"do",
|
||||
"for",
|
||||
"if",
|
||||
"else",
|
||||
"switch",
|
||||
"case",
|
||||
"try",
|
||||
"catch",
|
||||
"finally",
|
||||
"while",
|
||||
"with",
|
||||
"return"
|
||||
],
|
||||
|
||||
"validateAlignedFunctionParameters": {
|
||||
"lineBreakAfterOpeningBraces": true,
|
||||
"lineBreakBeforeClosingBraces": true
|
||||
},
|
||||
|
||||
"requirePaddingNewLinesBeforeExport": true,
|
||||
|
||||
"validateNewlineAfterArrayElements": {
|
||||
"maximum": 6
|
||||
},
|
||||
|
||||
"requirePaddingNewLinesAfterUseStrict": true
|
||||
}
|
1
tools/eslint/node_modules/extend/.npmignore
generated
vendored
Normal file
1
tools/eslint/node_modules/extend/.npmignore
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
test
|
44
tools/eslint/node_modules/extend/.travis.yml
generated
vendored
Normal file
44
tools/eslint/node_modules/extend/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "iojs-v2.3"
|
||||
- "iojs-v2.2"
|
||||
- "iojs-v2.1"
|
||||
- "iojs-v2.0"
|
||||
- "iojs-v1.8"
|
||||
- "iojs-v1.7"
|
||||
- "iojs-v1.6"
|
||||
- "iojs-v1.5"
|
||||
- "iojs-v1.4"
|
||||
- "iojs-v1.3"
|
||||
- "iojs-v1.2"
|
||||
- "iojs-v1.1"
|
||||
- "iojs-v1.0"
|
||||
- "0.12"
|
||||
- "0.11"
|
||||
- "0.10"
|
||||
- "0.9"
|
||||
- "0.8"
|
||||
- "0.6"
|
||||
- "0.4"
|
||||
before_install:
|
||||
- '[ "${TRAVIS_NODE_VERSION}" = "0.6" ] || npm install -g npm@1.4.28 && npm install -g npm'
|
||||
sudo: false
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- node_js: "iojs-v2.2"
|
||||
- node_js: "iojs-v2.1"
|
||||
- node_js: "iojs-v2.0"
|
||||
- node_js: "iojs-v1.7"
|
||||
- node_js: "iojs-v1.6"
|
||||
- node_js: "iojs-v1.5"
|
||||
- node_js: "iojs-v1.4"
|
||||
- node_js: "iojs-v1.3"
|
||||
- node_js: "iojs-v1.2"
|
||||
- node_js: "iojs-v1.1"
|
||||
- node_js: "iojs-v1.0"
|
||||
- node_js: "0.11"
|
||||
- node_js: "0.9"
|
||||
- node_js: "0.8"
|
||||
- node_js: "0.6"
|
||||
- node_js: "0.4"
|
68
tools/eslint/node_modules/extend/CHANGELOG.md
generated
vendored
Normal file
68
tools/eslint/node_modules/extend/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
3.0.0 / 2015-07-01
|
||||
==================
|
||||
* [Possible breaking change] Use global "strict" directive (#32)
|
||||
* [Tests] `int` is an ES3 reserved word
|
||||
* [Tests] Test up to `io.js` `v2.3`
|
||||
* [Tests] Add `npm run eslint`
|
||||
* [Dev Deps] Update `covert`, `jscs`
|
||||
|
||||
2.0.1 / 2015-04-25
|
||||
==================
|
||||
* Use an inline `isArray` check, for ES3 browsers. (#27)
|
||||
* Some old browsers fail when an identifier is `toString`
|
||||
* Test latest `node` and `io.js` versions on `travis-ci`; speed up builds
|
||||
* Add license info to package.json (#25)
|
||||
* Update `tape`, `jscs`
|
||||
* Adding a CHANGELOG
|
||||
|
||||
2.0.0 / 2014-10-01
|
||||
==================
|
||||
* Increase code coverage to 100%; run code coverage as part of tests
|
||||
* Add `npm run lint`; Run linter as part of tests
|
||||
* Remove nodeType and setInterval checks in isPlainObject
|
||||
* Updating `tape`, `jscs`, `covert`
|
||||
* General style and README cleanup
|
||||
|
||||
1.3.0 / 2014-06-20
|
||||
==================
|
||||
* Add component.json for browser support (#18)
|
||||
* Use SVG for badges in README (#16)
|
||||
* Updating `tape`, `covert`
|
||||
* Updating travis-ci to work with multiple node versions
|
||||
* Fix `deep === false` bug (returning target as {}) (#14)
|
||||
* Fixing constructor checks in isPlainObject
|
||||
* Adding additional test coverage
|
||||
* Adding `npm run coverage`
|
||||
* Add LICENSE (#13)
|
||||
* Adding a warning about `false`, per #11
|
||||
* General style and whitespace cleanup
|
||||
|
||||
1.2.1 / 2013-09-14
|
||||
==================
|
||||
* Fixing hasOwnProperty bugs that would only have shown up in specific browsers. Fixes #8
|
||||
* Updating `tape`
|
||||
|
||||
1.2.0 / 2013-09-02
|
||||
==================
|
||||
* Updating the README: add badges
|
||||
* Adding a missing variable reference.
|
||||
* Using `tape` instead of `buster` for tests; add more tests (#7)
|
||||
* Adding node 0.10 to Travis CI (#6)
|
||||
* Enabling "npm test" and cleaning up package.json (#5)
|
||||
* Add Travis CI.
|
||||
|
||||
1.1.3 / 2012-12-06
|
||||
==================
|
||||
* Added unit tests.
|
||||
* Ensure extend function is named. (Looks nicer in a stack trace.)
|
||||
* README cleanup.
|
||||
|
||||
1.1.1 / 2012-11-07
|
||||
==================
|
||||
* README cleanup.
|
||||
* Added installation instructions.
|
||||
* Added a missing semicolon
|
||||
|
||||
1.0.0 / 2012-04-08
|
||||
==================
|
||||
* Initial commit
|
22
tools/eslint/node_modules/extend/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/extend/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Stefan Thomas
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
61
tools/eslint/node_modules/extend/README.md
generated
vendored
Normal file
61
tools/eslint/node_modules/extend/README.md
generated
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
[![Build Status][travis-svg]][travis-url]
|
||||
[![dependency status][deps-svg]][deps-url]
|
||||
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
||||
|
||||
# extend() for Node.js <sup>[![Version Badge][npm-version-png]][npm-url]</sup>
|
||||
|
||||
`node-extend` is a port of the classic extend() method from jQuery. It behaves as you expect. It is simple, tried and true.
|
||||
|
||||
## Installation
|
||||
|
||||
This package is available on [npm][npm-url] as: `extend`
|
||||
|
||||
``` sh
|
||||
npm install extend
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
**Syntax:** extend **(** [`deep`], `target`, `object1`, [`objectN`] **)**
|
||||
|
||||
*Extend one object with one or more others, returning the modified object.*
|
||||
|
||||
Keep in mind that the target object will be modified, and will be returned from extend().
|
||||
|
||||
If a boolean true is specified as the first argument, extend performs a deep copy, recursively copying any objects it finds. Otherwise, the copy will share structure with the original object(s).
|
||||
Undefined properties are not copied. However, properties inherited from the object's prototype will be copied over.
|
||||
Warning: passing `false` as the first argument is not supported.
|
||||
|
||||
### Arguments
|
||||
|
||||
* `deep` *Boolean* (optional)
|
||||
If set, the merge becomes recursive (i.e. deep copy).
|
||||
* `target` *Object*
|
||||
The object to extend.
|
||||
* `object1` *Object*
|
||||
The object that will be merged into the first.
|
||||
* `objectN` *Object* (Optional)
|
||||
More objects to merge into the first.
|
||||
|
||||
## License
|
||||
|
||||
`node-extend` is licensed under the [MIT License][mit-license-url].
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
All credit to the jQuery authors for perfecting this amazing utility.
|
||||
|
||||
Ported to Node.js by [Stefan Thomas][github-justmoon] with contributions by [Jonathan Buchanan][github-insin] and [Jordan Harband][github-ljharb].
|
||||
|
||||
[travis-svg]: https://travis-ci.org/justmoon/node-extend.svg
|
||||
[travis-url]: https://travis-ci.org/justmoon/node-extend
|
||||
[npm-url]: https://npmjs.org/package/extend
|
||||
[mit-license-url]: http://opensource.org/licenses/MIT
|
||||
[github-justmoon]: https://github.com/justmoon
|
||||
[github-insin]: https://github.com/insin
|
||||
[github-ljharb]: https://github.com/ljharb
|
||||
[npm-version-png]: http://vb.teelaun.ch/justmoon/node-extend.svg
|
||||
[deps-svg]: https://david-dm.org/justmoon/node-extend.svg
|
||||
[deps-url]: https://david-dm.org/justmoon/node-extend
|
||||
[dev-deps-svg]: https://david-dm.org/justmoon/node-extend/dev-status.svg
|
||||
[dev-deps-url]: https://david-dm.org/justmoon/node-extend#info=devDependencies
|
31
tools/eslint/node_modules/extend/component.json
generated
vendored
Normal file
31
tools/eslint/node_modules/extend/component.json
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "extend",
|
||||
"author": "Stefan Thomas <justmoon@members.fsf.org> (http://www.justmoon.net)",
|
||||
"version": "3.0.0",
|
||||
"description": "Port of jQuery.extend for node.js and the browser.",
|
||||
"scripts": [
|
||||
"index.js"
|
||||
],
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jordan Harband",
|
||||
"url": "https://github.com/ljharb"
|
||||
}
|
||||
],
|
||||
"keywords": [
|
||||
"extend",
|
||||
"clone",
|
||||
"merge"
|
||||
],
|
||||
"repository" : {
|
||||
"type": "git",
|
||||
"url": "https://github.com/justmoon/node-extend.git"
|
||||
},
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
"tape" : "~3.0.0",
|
||||
"covert": "~0.4.0",
|
||||
"jscs": "~1.6.2"
|
||||
}
|
||||
}
|
85
tools/eslint/node_modules/extend/index.js
generated
vendored
Normal file
85
tools/eslint/node_modules/extend/index.js
generated
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
'use strict';
|
||||
|
||||
var hasOwn = Object.prototype.hasOwnProperty;
|
||||
var toStr = Object.prototype.toString;
|
||||
|
||||
var isArray = function isArray(arr) {
|
||||
if (typeof Array.isArray === 'function') {
|
||||
return Array.isArray(arr);
|
||||
}
|
||||
|
||||
return toStr.call(arr) === '[object Array]';
|
||||
};
|
||||
|
||||
var isPlainObject = function isPlainObject(obj) {
|
||||
if (!obj || toStr.call(obj) !== '[object Object]') {
|
||||
return false;
|
||||
}
|
||||
|
||||
var hasOwnConstructor = hasOwn.call(obj, 'constructor');
|
||||
var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');
|
||||
// Not own constructor property must be Object
|
||||
if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Own properties are enumerated firstly, so to speed up,
|
||||
// if last one is own, then all properties are own.
|
||||
var key;
|
||||
for (key in obj) {/**/}
|
||||
|
||||
return typeof key === 'undefined' || hasOwn.call(obj, key);
|
||||
};
|
||||
|
||||
module.exports = function extend() {
|
||||
var options, name, src, copy, copyIsArray, clone,
|
||||
target = arguments[0],
|
||||
i = 1,
|
||||
length = arguments.length,
|
||||
deep = false;
|
||||
|
||||
// Handle a deep copy situation
|
||||
if (typeof target === 'boolean') {
|
||||
deep = target;
|
||||
target = arguments[1] || {};
|
||||
// skip the boolean and the target
|
||||
i = 2;
|
||||
} else if ((typeof target !== 'object' && typeof target !== 'function') || target == null) {
|
||||
target = {};
|
||||
}
|
||||
|
||||
for (; i < length; ++i) {
|
||||
options = arguments[i];
|
||||
// Only deal with non-null/undefined values
|
||||
if (options != null) {
|
||||
// Extend the base object
|
||||
for (name in options) {
|
||||
src = target[name];
|
||||
copy = options[name];
|
||||
|
||||
// Prevent never-ending loop
|
||||
if (target !== copy) {
|
||||
// Recurse if we're merging plain objects or arrays
|
||||
if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
|
||||
if (copyIsArray) {
|
||||
copyIsArray = false;
|
||||
clone = src && isArray(src) ? src : [];
|
||||
} else {
|
||||
clone = src && isPlainObject(src) ? src : {};
|
||||
}
|
||||
|
||||
// Never move original objects, clone them
|
||||
target[name] = extend(deep, clone, copy);
|
||||
|
||||
// Don't bring in undefined values
|
||||
} else if (typeof copy !== 'undefined') {
|
||||
target[name] = copy;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Return the modified object
|
||||
return target;
|
||||
};
|
108
tools/eslint/node_modules/extend/package.json
generated
vendored
Normal file
108
tools/eslint/node_modules/extend/package.json
generated
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "extend@^3.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "extend",
|
||||
"name": "extend",
|
||||
"rawSpec": "^3.0.0",
|
||||
"spec": ">=3.0.0 <4.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\remark-parse"
|
||||
]
|
||||
],
|
||||
"_from": "extend@>=3.0.0 <4.0.0",
|
||||
"_id": "extend@3.0.0",
|
||||
"_inCache": true,
|
||||
"_location": "/extend",
|
||||
"_nodeVersion": "2.3.1",
|
||||
"_npmUser": {
|
||||
"name": "ljharb",
|
||||
"email": "ljharb@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.11.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "extend@^3.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "extend",
|
||||
"name": "extend",
|
||||
"rawSpec": "^3.0.0",
|
||||
"spec": ">=3.0.0 <4.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/remark-parse",
|
||||
"/remark-stringify",
|
||||
"/unified"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz",
|
||||
"_shasum": "5a474353b9f3353ddd8176dfd37b91c83a46f1d4",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "extend@^3.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\remark-parse",
|
||||
"author": {
|
||||
"name": "Stefan Thomas",
|
||||
"email": "justmoon@members.fsf.org",
|
||||
"url": "http://www.justmoon.net"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/justmoon/node-extend/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jordan Harband",
|
||||
"url": "https://github.com/ljharb"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "Port of jQuery.extend for node.js and the browser",
|
||||
"devDependencies": {
|
||||
"covert": "^1.1.0",
|
||||
"eslint": "^0.24.0",
|
||||
"jscs": "^1.13.1",
|
||||
"tape": "^4.0.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "5a474353b9f3353ddd8176dfd37b91c83a46f1d4",
|
||||
"tarball": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz"
|
||||
},
|
||||
"gitHead": "148e7270cab2e9413af2cd0cab147070d755ed6d",
|
||||
"homepage": "https://github.com/justmoon/node-extend#readme",
|
||||
"keywords": [
|
||||
"extend",
|
||||
"clone",
|
||||
"merge"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "justmoon",
|
||||
"email": "justmoon@members.fsf.org"
|
||||
},
|
||||
{
|
||||
"name": "ljharb",
|
||||
"email": "ljharb@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "extend",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/justmoon/node-extend.git"
|
||||
},
|
||||
"scripts": {
|
||||
"coverage": "covert test/index.js",
|
||||
"coverage-quiet": "covert test/index.js --quiet",
|
||||
"eslint": "eslint *.js */*.js",
|
||||
"jscs": "jscs *.js */*.js",
|
||||
"lint": "npm run jscs && npm run eslint",
|
||||
"test": "npm run lint && node test/index.js && npm run coverage-quiet"
|
||||
},
|
||||
"version": "3.0.0"
|
||||
}
|
13
tools/eslint/node_modules/function-bind/.eslintrc
generated
vendored
Normal file
13
tools/eslint/node_modules/function-bind/.eslintrc
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"max-nested-callbacks": [2, 3],
|
||||
"max-params": [2, 3],
|
||||
"max-statements": [2, 20],
|
||||
"no-new-func": [1],
|
||||
"strict": [0]
|
||||
}
|
||||
}
|
158
tools/eslint/node_modules/function-bind/.jscs.json
generated
vendored
Normal file
158
tools/eslint/node_modules/function-bind/.jscs.json
generated
vendored
Normal file
@ -0,0 +1,158 @@
|
||||
{
|
||||
"es3": true,
|
||||
|
||||
"additionalRules": [],
|
||||
|
||||
"requireSemicolons": true,
|
||||
|
||||
"disallowMultipleSpaces": true,
|
||||
|
||||
"disallowIdentifierNames": [],
|
||||
|
||||
"requireCurlyBraces": {
|
||||
"allExcept": [],
|
||||
"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
|
||||
},
|
||||
|
||||
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
|
||||
|
||||
"disallowSpaceAfterKeywords": [],
|
||||
|
||||
"disallowSpaceBeforeComma": true,
|
||||
"disallowSpaceAfterComma": false,
|
||||
"disallowSpaceBeforeSemicolon": true,
|
||||
|
||||
"disallowNodeTypes": [
|
||||
"DebuggerStatement",
|
||||
"ForInStatement",
|
||||
"LabeledStatement",
|
||||
"SwitchCase",
|
||||
"SwitchStatement",
|
||||
"WithStatement"
|
||||
],
|
||||
|
||||
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
|
||||
|
||||
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
|
||||
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
||||
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
|
||||
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
||||
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
|
||||
|
||||
"requireSpaceBetweenArguments": true,
|
||||
|
||||
"disallowSpacesInsideParentheses": true,
|
||||
|
||||
"disallowSpacesInsideArrayBrackets": true,
|
||||
|
||||
"disallowQuotedKeysInObjects": "allButReserved",
|
||||
|
||||
"disallowSpaceAfterObjectKeys": true,
|
||||
|
||||
"requireCommaBeforeLineBreak": true,
|
||||
|
||||
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
||||
"requireSpaceAfterPrefixUnaryOperators": [],
|
||||
|
||||
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
||||
"requireSpaceBeforePostfixUnaryOperators": [],
|
||||
|
||||
"disallowSpaceBeforeBinaryOperators": [],
|
||||
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
||||
|
||||
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
||||
"disallowSpaceAfterBinaryOperators": [],
|
||||
|
||||
"disallowImplicitTypeConversion": ["binary", "string"],
|
||||
|
||||
"disallowKeywords": ["with", "eval"],
|
||||
|
||||
"requireKeywordsOnNewLine": [],
|
||||
"disallowKeywordsOnNewLine": ["else"],
|
||||
|
||||
"requireLineFeedAtFileEnd": true,
|
||||
|
||||
"disallowTrailingWhitespace": true,
|
||||
|
||||
"disallowTrailingComma": true,
|
||||
|
||||
"excludeFiles": ["node_modules/**", "vendor/**"],
|
||||
|
||||
"disallowMultipleLineStrings": true,
|
||||
|
||||
"requireDotNotation": { "allExcept": ["keywords"] },
|
||||
|
||||
"requireParenthesesAroundIIFE": true,
|
||||
|
||||
"validateLineBreaks": "LF",
|
||||
|
||||
"validateQuoteMarks": {
|
||||
"escape": true,
|
||||
"mark": "'"
|
||||
},
|
||||
|
||||
"disallowOperatorBeforeLineBreak": [],
|
||||
|
||||
"requireSpaceBeforeKeywords": [
|
||||
"do",
|
||||
"for",
|
||||
"if",
|
||||
"else",
|
||||
"switch",
|
||||
"case",
|
||||
"try",
|
||||
"catch",
|
||||
"finally",
|
||||
"while",
|
||||
"with",
|
||||
"return"
|
||||
],
|
||||
|
||||
"validateAlignedFunctionParameters": {
|
||||
"lineBreakAfterOpeningBraces": true,
|
||||
"lineBreakBeforeClosingBraces": true
|
||||
},
|
||||
|
||||
"requirePaddingNewLinesBeforeExport": true,
|
||||
|
||||
"validateNewlineAfterArrayElements": {
|
||||
"maximum": 8
|
||||
},
|
||||
|
||||
"requirePaddingNewLinesAfterUseStrict": true,
|
||||
|
||||
"disallowArrowFunctions": true,
|
||||
|
||||
"disallowMultiLineTernary": true,
|
||||
|
||||
"validateOrderInObjectKeys": "asc-insensitive",
|
||||
|
||||
"disallowIdenticalDestructuringNames": true,
|
||||
|
||||
"disallowNestedTernaries": { "maxLevel": 1 },
|
||||
|
||||
"requireSpaceAfterComma": { "allExcept": ["trailing"] },
|
||||
"requireAlignedMultilineParams": false,
|
||||
|
||||
"requireSpacesInGenerator": {
|
||||
"afterStar": true
|
||||
},
|
||||
|
||||
"disallowSpacesInGenerator": {
|
||||
"beforeStar": true
|
||||
},
|
||||
|
||||
"disallowVar": false,
|
||||
|
||||
"requireArrayDestructuring": false,
|
||||
|
||||
"requireEnhancedObjectLiterals": false,
|
||||
|
||||
"requireObjectDestructuring": false,
|
||||
|
||||
"requireEarlyReturn": false,
|
||||
|
||||
"requireCapitalizedConstructorsNew": {
|
||||
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
|
||||
}
|
||||
}
|
16
tools/eslint/node_modules/function-bind/.npmignore
generated
vendored
Normal file
16
tools/eslint/node_modules/function-bind/.npmignore
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
.DS_Store
|
||||
.monitor
|
||||
.*.swp
|
||||
.nodemonignore
|
||||
releases
|
||||
*.log
|
||||
*.err
|
||||
fleet.json
|
||||
public/browserify
|
||||
bin/*.json
|
||||
.bin
|
||||
build
|
||||
compile
|
||||
.lock-wscript
|
||||
coverage
|
||||
node_modules
|
77
tools/eslint/node_modules/function-bind/.travis.yml
generated
vendored
Normal file
77
tools/eslint/node_modules/function-bind/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "5.6"
|
||||
- "5.5"
|
||||
- "5.4"
|
||||
- "5.3"
|
||||
- "5.2"
|
||||
- "5.1"
|
||||
- "5.0"
|
||||
- "4.3"
|
||||
- "4.2"
|
||||
- "4.1"
|
||||
- "4.0"
|
||||
- "iojs-v3.3"
|
||||
- "iojs-v3.2"
|
||||
- "iojs-v3.1"
|
||||
- "iojs-v3.0"
|
||||
- "iojs-v2.5"
|
||||
- "iojs-v2.4"
|
||||
- "iojs-v2.3"
|
||||
- "iojs-v2.2"
|
||||
- "iojs-v2.1"
|
||||
- "iojs-v2.0"
|
||||
- "iojs-v1.8"
|
||||
- "iojs-v1.7"
|
||||
- "iojs-v1.6"
|
||||
- "iojs-v1.5"
|
||||
- "iojs-v1.4"
|
||||
- "iojs-v1.3"
|
||||
- "iojs-v1.2"
|
||||
- "iojs-v1.1"
|
||||
- "iojs-v1.0"
|
||||
- "0.12"
|
||||
- "0.11"
|
||||
- "0.10"
|
||||
- "0.9"
|
||||
- "0.8"
|
||||
- "0.6"
|
||||
- "0.4"
|
||||
before_install:
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi'
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
|
||||
script:
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" != "4.3" ]; then npm run tests-only ; else npm test ; fi'
|
||||
sudo: false
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- node_js: "5.5"
|
||||
- node_js: "5.4"
|
||||
- node_js: "5.3"
|
||||
- node_js: "5.2"
|
||||
- node_js: "5.1"
|
||||
- node_js: "5.0"
|
||||
- node_js: "4.2"
|
||||
- node_js: "4.1"
|
||||
- node_js: "4.0"
|
||||
- node_js: "iojs-v3.2"
|
||||
- node_js: "iojs-v3.1"
|
||||
- node_js: "iojs-v3.0"
|
||||
- node_js: "iojs-v2.4"
|
||||
- node_js: "iojs-v2.3"
|
||||
- node_js: "iojs-v2.2"
|
||||
- node_js: "iojs-v2.1"
|
||||
- node_js: "iojs-v2.0"
|
||||
- node_js: "iojs-v1.7"
|
||||
- node_js: "iojs-v1.6"
|
||||
- node_js: "iojs-v1.5"
|
||||
- node_js: "iojs-v1.4"
|
||||
- node_js: "iojs-v1.3"
|
||||
- node_js: "iojs-v1.2"
|
||||
- node_js: "iojs-v1.1"
|
||||
- node_js: "iojs-v1.0"
|
||||
- node_js: "0.11"
|
||||
- node_js: "0.9"
|
||||
- node_js: "0.6"
|
||||
- node_js: "0.4"
|
19
tools/eslint/node_modules/function-bind/LICENSE
generated
vendored
Normal file
19
tools/eslint/node_modules/function-bind/LICENSE
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
Copyright (c) 2013 Raynos.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
48
tools/eslint/node_modules/function-bind/README.md
generated
vendored
Normal file
48
tools/eslint/node_modules/function-bind/README.md
generated
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
# function-bind
|
||||
|
||||
<!--
|
||||
[![build status][travis-svg]][travis-url]
|
||||
[![NPM version][npm-badge-svg]][npm-url]
|
||||
[![Coverage Status][5]][6]
|
||||
[![gemnasium Dependency Status][7]][8]
|
||||
[![Dependency status][deps-svg]][deps-url]
|
||||
[![Dev Dependency status][dev-deps-svg]][dev-deps-url]
|
||||
-->
|
||||
|
||||
<!-- [![browser support][11]][12] -->
|
||||
|
||||
Implementation of function.prototype.bind
|
||||
|
||||
## Example
|
||||
|
||||
I mainly do this for unit tests I run on phantomjs.
|
||||
PhantomJS does not have Function.prototype.bind :(
|
||||
|
||||
```js
|
||||
Function.prototype.bind = require("function-bind")
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
`npm install function-bind`
|
||||
|
||||
## Contributors
|
||||
|
||||
- Raynos
|
||||
|
||||
## MIT Licenced
|
||||
|
||||
[travis-svg]: https://travis-ci.org/Raynos/function-bind.svg
|
||||
[travis-url]: https://travis-ci.org/Raynos/function-bind
|
||||
[npm-badge-svg]: https://badge.fury.io/js/function-bind.svg
|
||||
[npm-url]: https://npmjs.org/package/function-bind
|
||||
[5]: https://coveralls.io/repos/Raynos/function-bind/badge.png
|
||||
[6]: https://coveralls.io/r/Raynos/function-bind
|
||||
[7]: https://gemnasium.com/Raynos/function-bind.png
|
||||
[8]: https://gemnasium.com/Raynos/function-bind
|
||||
[deps-svg]: https://david-dm.org/Raynos/function-bind.svg
|
||||
[deps-url]: https://david-dm.org/Raynos/function-bind
|
||||
[dev-deps-svg]: https://david-dm.org/Raynos/function-bind/dev-status.svg
|
||||
[dev-deps-url]: https://david-dm.org/Raynos/function-bind#info=devDependencies
|
||||
[11]: https://ci.testling.com/Raynos/function-bind.png
|
||||
[12]: https://ci.testling.com/Raynos/function-bind
|
48
tools/eslint/node_modules/function-bind/implementation.js
generated
vendored
Normal file
48
tools/eslint/node_modules/function-bind/implementation.js
generated
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
||||
var slice = Array.prototype.slice;
|
||||
var toStr = Object.prototype.toString;
|
||||
var funcType = '[object Function]';
|
||||
|
||||
module.exports = function bind(that) {
|
||||
var target = this;
|
||||
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
||||
throw new TypeError(ERROR_MESSAGE + target);
|
||||
}
|
||||
var args = slice.call(arguments, 1);
|
||||
|
||||
var bound;
|
||||
var binder = function () {
|
||||
if (this instanceof bound) {
|
||||
var result = target.apply(
|
||||
this,
|
||||
args.concat(slice.call(arguments))
|
||||
);
|
||||
if (Object(result) === result) {
|
||||
return result;
|
||||
}
|
||||
return this;
|
||||
} else {
|
||||
return target.apply(
|
||||
that,
|
||||
args.concat(slice.call(arguments))
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
var boundLength = Math.max(0, target.length - args.length);
|
||||
var boundArgs = [];
|
||||
for (var i = 0; i < boundLength; i++) {
|
||||
boundArgs.push('$' + i);
|
||||
}
|
||||
|
||||
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
||||
|
||||
if (target.prototype) {
|
||||
var Empty = function Empty() {};
|
||||
Empty.prototype = target.prototype;
|
||||
bound.prototype = new Empty();
|
||||
Empty.prototype = null;
|
||||
}
|
||||
|
||||
return bound;
|
||||
};
|
3
tools/eslint/node_modules/function-bind/index.js
generated
vendored
Normal file
3
tools/eslint/node_modules/function-bind/index.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
var implementation = require('./implementation');
|
||||
|
||||
module.exports = Function.prototype.bind || implementation;
|
137
tools/eslint/node_modules/function-bind/package.json
generated
vendored
Normal file
137
tools/eslint/node_modules/function-bind/package.json
generated
vendored
Normal file
@ -0,0 +1,137 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "function-bind@^1.0.2",
|
||||
"scope": null,
|
||||
"escapedName": "function-bind",
|
||||
"name": "function-bind",
|
||||
"rawSpec": "^1.0.2",
|
||||
"spec": ">=1.0.2 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\has"
|
||||
]
|
||||
],
|
||||
"_from": "function-bind@>=1.0.2 <2.0.0",
|
||||
"_id": "function-bind@1.1.0",
|
||||
"_inCache": true,
|
||||
"_location": "/function-bind",
|
||||
"_nodeVersion": "5.6.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-6-west.internal.npmjs.com",
|
||||
"tmp": "tmp/function-bind-1.1.0.tgz_1455438520627_0.822420896962285"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "ljharb",
|
||||
"email": "ljharb@gmail.com"
|
||||
},
|
||||
"_npmVersion": "3.6.0",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "function-bind@^1.0.2",
|
||||
"scope": null,
|
||||
"escapedName": "function-bind",
|
||||
"name": "function-bind",
|
||||
"rawSpec": "^1.0.2",
|
||||
"spec": ">=1.0.2 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/has"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.0.tgz",
|
||||
"_shasum": "16176714c801798e4e8f2cf7f7529467bb4a5771",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "function-bind@^1.0.2",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\has",
|
||||
"author": {
|
||||
"name": "Raynos",
|
||||
"email": "raynos2@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Raynos/function-bind/issues",
|
||||
"email": "raynos2@gmail.com"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Raynos"
|
||||
},
|
||||
{
|
||||
"name": "Jordan Harband",
|
||||
"url": "https://github.com/ljharb"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "Implementation of Function.prototype.bind",
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^2.1.0",
|
||||
"covert": "^1.1.0",
|
||||
"eslint": "^2.0.0",
|
||||
"jscs": "^2.9.0",
|
||||
"tape": "^4.4.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "16176714c801798e4e8f2cf7f7529467bb4a5771",
|
||||
"tarball": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.0.tgz"
|
||||
},
|
||||
"gitHead": "cb5057f2a0018ac48c812ccee86934a5af30efdb",
|
||||
"homepage": "https://github.com/Raynos/function-bind",
|
||||
"keywords": [
|
||||
"function",
|
||||
"bind",
|
||||
"shim",
|
||||
"es5"
|
||||
],
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "http://github.com/Raynos/function-bind/raw/master/LICENSE"
|
||||
}
|
||||
],
|
||||
"main": "index",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "raynos",
|
||||
"email": "raynos2@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "ljharb",
|
||||
"email": "ljharb@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "function-bind",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Raynos/function-bind.git"
|
||||
},
|
||||
"scripts": {
|
||||
"coverage": "covert test/*.js",
|
||||
"coverage-quiet": "covert test/*.js --quiet",
|
||||
"eslint": "eslint *.js */*.js",
|
||||
"jscs": "jscs *.js */*.js",
|
||||
"lint": "npm run jscs && npm run eslint",
|
||||
"test": "npm run lint && npm run tests-only && npm run coverage-quiet",
|
||||
"tests-only": "node test"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"ie/8..latest",
|
||||
"firefox/16..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/22..latest",
|
||||
"chrome/canary",
|
||||
"opera/12..latest",
|
||||
"opera/next",
|
||||
"safari/5.1..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2..latest"
|
||||
]
|
||||
},
|
||||
"version": "1.1.0"
|
||||
}
|
250
tools/eslint/node_modules/function-bind/test/index.js
generated
vendored
Normal file
250
tools/eslint/node_modules/function-bind/test/index.js
generated
vendored
Normal file
@ -0,0 +1,250 @@
|
||||
var test = require('tape');
|
||||
|
||||
var functionBind = require('../implementation');
|
||||
var getCurrentContext = function () { return this; };
|
||||
|
||||
test('functionBind is a function', function (t) {
|
||||
t.equal(typeof functionBind, 'function');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('non-functions', function (t) {
|
||||
var nonFunctions = [true, false, [], {}, 42, 'foo', NaN, /a/g];
|
||||
t.plan(nonFunctions.length);
|
||||
for (var i = 0; i < nonFunctions.length; ++i) {
|
||||
try { functionBind.call(nonFunctions[i]); } catch (ex) {
|
||||
t.ok(ex instanceof TypeError, 'throws when given ' + String(nonFunctions[i]));
|
||||
}
|
||||
}
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('without a context', function (t) {
|
||||
t.test('binds properly', function (st) {
|
||||
var args, context;
|
||||
var namespace = {
|
||||
func: functionBind.call(function () {
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
context = this;
|
||||
})
|
||||
};
|
||||
namespace.func(1, 2, 3);
|
||||
st.deepEqual(args, [1, 2, 3]);
|
||||
st.equal(context, getCurrentContext.call());
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('binds properly, and still supplies bound arguments', function (st) {
|
||||
var args, context;
|
||||
var namespace = {
|
||||
func: functionBind.call(function () {
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
context = this;
|
||||
}, undefined, 1, 2, 3)
|
||||
};
|
||||
namespace.func(4, 5, 6);
|
||||
st.deepEqual(args, [1, 2, 3, 4, 5, 6]);
|
||||
st.equal(context, getCurrentContext.call());
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('returns properly', function (st) {
|
||||
var args;
|
||||
var namespace = {
|
||||
func: functionBind.call(function () {
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
return this;
|
||||
}, null)
|
||||
};
|
||||
var context = namespace.func(1, 2, 3);
|
||||
st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
|
||||
st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('returns properly with bound arguments', function (st) {
|
||||
var args;
|
||||
var namespace = {
|
||||
func: functionBind.call(function () {
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
return this;
|
||||
}, null, 1, 2, 3)
|
||||
};
|
||||
var context = namespace.func(4, 5, 6);
|
||||
st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
|
||||
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('called as a constructor', function (st) {
|
||||
var thunkify = function (value) {
|
||||
return function () { return value; };
|
||||
};
|
||||
st.test('returns object value', function (sst) {
|
||||
var expectedReturnValue = [1, 2, 3];
|
||||
var Constructor = functionBind.call(thunkify(expectedReturnValue), null);
|
||||
var result = new Constructor();
|
||||
sst.equal(result, expectedReturnValue);
|
||||
sst.end();
|
||||
});
|
||||
|
||||
st.test('does not return primitive value', function (sst) {
|
||||
var Constructor = functionBind.call(thunkify(42), null);
|
||||
var result = new Constructor();
|
||||
sst.notEqual(result, 42);
|
||||
sst.end();
|
||||
});
|
||||
|
||||
st.test('object from bound constructor is instance of original and bound constructor', function (sst) {
|
||||
var A = function (x) {
|
||||
this.name = x || 'A';
|
||||
};
|
||||
var B = functionBind.call(A, null, 'B');
|
||||
|
||||
var result = new B();
|
||||
sst.ok(result instanceof B, 'result is instance of bound constructor');
|
||||
sst.ok(result instanceof A, 'result is instance of original constructor');
|
||||
sst.end();
|
||||
});
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('with a context', function (t) {
|
||||
t.test('with no bound arguments', function (st) {
|
||||
var args, context;
|
||||
var boundContext = {};
|
||||
var namespace = {
|
||||
func: functionBind.call(function () {
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
context = this;
|
||||
}, boundContext)
|
||||
};
|
||||
namespace.func(1, 2, 3);
|
||||
st.equal(context, boundContext, 'binds a context properly');
|
||||
st.deepEqual(args, [1, 2, 3], 'supplies passed arguments');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('with bound arguments', function (st) {
|
||||
var args, context;
|
||||
var boundContext = {};
|
||||
var namespace = {
|
||||
func: functionBind.call(function () {
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
context = this;
|
||||
}, boundContext, 1, 2, 3)
|
||||
};
|
||||
namespace.func(4, 5, 6);
|
||||
st.equal(context, boundContext, 'binds a context properly');
|
||||
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('returns properly', function (st) {
|
||||
var boundContext = {};
|
||||
var args;
|
||||
var namespace = {
|
||||
func: functionBind.call(function () {
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
return this;
|
||||
}, boundContext)
|
||||
};
|
||||
var context = namespace.func(1, 2, 3);
|
||||
st.equal(context, boundContext, 'returned context is bound context');
|
||||
st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
|
||||
st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('returns properly with bound arguments', function (st) {
|
||||
var boundContext = {};
|
||||
var args;
|
||||
var namespace = {
|
||||
func: functionBind.call(function () {
|
||||
args = Array.prototype.slice.call(arguments);
|
||||
return this;
|
||||
}, boundContext, 1, 2, 3)
|
||||
};
|
||||
var context = namespace.func(4, 5, 6);
|
||||
st.equal(context, boundContext, 'returned context is bound context');
|
||||
st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
|
||||
st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('passes the correct arguments when called as a constructor', function (st) {
|
||||
var expected = { name: 'Correct' };
|
||||
var namespace = {
|
||||
Func: functionBind.call(function (arg) {
|
||||
return arg;
|
||||
}, { name: 'Incorrect' })
|
||||
};
|
||||
var returned = new namespace.Func(expected);
|
||||
st.equal(returned, expected, 'returns the right arg when called as a constructor');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('has the new instance\'s context when called as a constructor', function (st) {
|
||||
var actualContext;
|
||||
var expectedContext = { foo: 'bar' };
|
||||
var namespace = {
|
||||
Func: functionBind.call(function () {
|
||||
actualContext = this;
|
||||
}, expectedContext)
|
||||
};
|
||||
var result = new namespace.Func();
|
||||
st.equal(result instanceof namespace.Func, true);
|
||||
st.notEqual(actualContext, expectedContext);
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('bound function length', function (t) {
|
||||
t.test('sets a correct length without thisArg', function (st) {
|
||||
var subject = functionBind.call(function (a, b, c) { return a + b + c; });
|
||||
st.equal(subject.length, 3);
|
||||
st.equal(subject(1, 2, 3), 6);
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('sets a correct length with thisArg', function (st) {
|
||||
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {});
|
||||
st.equal(subject.length, 3);
|
||||
st.equal(subject(1, 2, 3), 6);
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('sets a correct length without thisArg and first argument', function (st) {
|
||||
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1);
|
||||
st.equal(subject.length, 2);
|
||||
st.equal(subject(2, 3), 6);
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('sets a correct length with thisArg and first argument', function (st) {
|
||||
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1);
|
||||
st.equal(subject.length, 2);
|
||||
st.equal(subject(2, 3), 6);
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('sets a correct length without thisArg and too many arguments', function (st) {
|
||||
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1, 2, 3, 4);
|
||||
st.equal(subject.length, 0);
|
||||
st.equal(subject(), 6);
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('sets a correct length with thisArg and too many arguments', function (st) {
|
||||
var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1, 2, 3, 4);
|
||||
st.equal(subject.length, 0);
|
||||
st.equal(subject(), 6);
|
||||
st.end();
|
||||
});
|
||||
});
|
14
tools/eslint/node_modules/has/.jshintrc
generated
vendored
Normal file
14
tools/eslint/node_modules/has/.jshintrc
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"boss": true,
|
||||
"eqnull": true,
|
||||
"node": true,
|
||||
"browser": true
|
||||
}
|
3
tools/eslint/node_modules/has/.npmignore
generated
vendored
Normal file
3
tools/eslint/node_modules/has/.npmignore
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
/node_modules/
|
||||
*.log
|
||||
*~
|
22
tools/eslint/node_modules/has/LICENSE-MIT
generated
vendored
Normal file
22
tools/eslint/node_modules/has/LICENSE-MIT
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
Copyright (c) 2013 Thiago de Arruda
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
18
tools/eslint/node_modules/has/README.mkd
generated
vendored
Normal file
18
tools/eslint/node_modules/has/README.mkd
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
# has
|
||||
|
||||
> Object.prototype.hasOwnProperty.call shortcut
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install --save has
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var has = require('has');
|
||||
|
||||
has({}, 'hasOwnProperty'); // false
|
||||
has(Object.prototype, 'hasOwnProperty'); // true
|
||||
```
|
95
tools/eslint/node_modules/has/package.json
generated
vendored
Normal file
95
tools/eslint/node_modules/has/package.json
generated
vendored
Normal file
@ -0,0 +1,95 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "has@^1.0.1",
|
||||
"scope": null,
|
||||
"escapedName": "has",
|
||||
"name": "has",
|
||||
"rawSpec": "^1.0.1",
|
||||
"spec": ">=1.0.1 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities"
|
||||
]
|
||||
],
|
||||
"_from": "has@>=1.0.1 <2.0.0",
|
||||
"_id": "has@1.0.1",
|
||||
"_inCache": true,
|
||||
"_location": "/has",
|
||||
"_nodeVersion": "2.2.1",
|
||||
"_npmUser": {
|
||||
"name": "tarruda",
|
||||
"email": "tpadilha84@gmail.com"
|
||||
},
|
||||
"_npmVersion": "2.11.0",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "has@^1.0.1",
|
||||
"scope": null,
|
||||
"escapedName": "has",
|
||||
"name": "has",
|
||||
"rawSpec": "^1.0.1",
|
||||
"spec": ">=1.0.1 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/parse-entities",
|
||||
"/stringify-entities",
|
||||
"/unified"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz",
|
||||
"_shasum": "8461733f538b0837c9361e39a9ab9e9704dc2f28",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "has@^1.0.1",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities",
|
||||
"author": {
|
||||
"name": "Thiago de Arruda",
|
||||
"email": "tpadilha84@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/tarruda/has/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"function-bind": "^1.0.2"
|
||||
},
|
||||
"description": "Object.prototype.hasOwnProperty.call shortcut",
|
||||
"devDependencies": {
|
||||
"chai": "~1.7.2",
|
||||
"mocha": "^1.21.4"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "8461733f538b0837c9361e39a9ab9e9704dc2f28",
|
||||
"tarball": "https://registry.npmjs.org/has/-/has-1.0.1.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8.0"
|
||||
},
|
||||
"gitHead": "535c5c8ed1dc255c9e223829e702548dd514d2a5",
|
||||
"homepage": "https://github.com/tarruda/has",
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/tarruda/has/blob/master/LICENSE-MIT"
|
||||
}
|
||||
],
|
||||
"main": "./src/index",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "tarruda",
|
||||
"email": "tpadilha84@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "has",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/tarruda/has.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node_modules/mocha/bin/mocha"
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
3
tools/eslint/node_modules/has/src/index.js
generated
vendored
Normal file
3
tools/eslint/node_modules/has/src/index.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
var bind = require('function-bind');
|
||||
|
||||
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
7
tools/eslint/node_modules/has/test/.jshintrc
generated
vendored
Normal file
7
tools/eslint/node_modules/has/test/.jshintrc
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"globals": {
|
||||
"expect": false,
|
||||
"run": false
|
||||
},
|
||||
"expr": true
|
||||
}
|
10
tools/eslint/node_modules/has/test/index.js
generated
vendored
Normal file
10
tools/eslint/node_modules/has/test/index.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
global.expect = require('chai').expect;
|
||||
var has = require('../src');
|
||||
|
||||
|
||||
describe('has', function() {
|
||||
it('works!', function() {
|
||||
expect(has({}, 'hasOwnProperty')).to.be.false;
|
||||
expect(has(Object.prototype, 'hasOwnProperty')).to.be.true;
|
||||
});
|
||||
});
|
22
tools/eslint/node_modules/is-alphabetical/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/is-alphabetical/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
6
tools/eslint/node_modules/is-alphabetical/history.md
generated
vendored
Normal file
6
tools/eslint/node_modules/is-alphabetical/history.md
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<!--remark setext-->
|
||||
|
||||
<!--lint disable no-multiple-toplevel-headings -->
|
||||
|
||||
1.0.0 / 2016-07-11
|
||||
==================
|
29
tools/eslint/node_modules/is-alphabetical/index.js
generated
vendored
Normal file
29
tools/eslint/node_modules/is-alphabetical/index.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @author Titus Wormer
|
||||
* @copyright 2016 Titus Wormer
|
||||
* @license MIT
|
||||
* @module is-alphabetical
|
||||
* @fileoverview Check if a character is alphabetical.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/* eslint-env commonjs */
|
||||
|
||||
/* Expose. */
|
||||
module.exports = alphabetical;
|
||||
|
||||
/**
|
||||
* Check whether the given character code, or the character
|
||||
* code at the first character, is alphabetical.
|
||||
*
|
||||
* @param {string|number} character
|
||||
* @return {boolean} - Whether `character` is alphabetical.
|
||||
*/
|
||||
function alphabetical(character) {
|
||||
var code = typeof character === 'string' ?
|
||||
character.charCodeAt(0) : character;
|
||||
|
||||
return (code >= 97 && code <= 122) || /* a-z */
|
||||
(code >= 65 && code <= 90); /* A-Z */
|
||||
}
|
144
tools/eslint/node_modules/is-alphabetical/package.json
generated
vendored
Normal file
144
tools/eslint/node_modules/is-alphabetical/package.json
generated
vendored
Normal file
@ -0,0 +1,144 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "is-alphabetical@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "is-alphabetical",
|
||||
"name": "is-alphabetical",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\is-alphanumerical"
|
||||
]
|
||||
],
|
||||
"_from": "is-alphabetical@>=1.0.0 <2.0.0",
|
||||
"_id": "is-alphabetical@1.0.0",
|
||||
"_inCache": true,
|
||||
"_location": "/is-alphabetical",
|
||||
"_nodeVersion": "5.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/is-alphabetical-1.0.0.tgz_1468271239488_0.1301835619378835"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "3.3.6",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "is-alphabetical@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "is-alphabetical",
|
||||
"name": "is-alphabetical",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/is-alphanumerical"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.0.tgz",
|
||||
"_shasum": "e2544c13058255f2144cb757066cd3342a1c8c46",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "is-alphabetical@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\is-alphanumerical",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/is-alphabetical/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "Check if a character is alphabetical",
|
||||
"devDependencies": {
|
||||
"browserify": "^13.0.1",
|
||||
"esmangle": "^1.0.1",
|
||||
"nyc": "^7.0.0",
|
||||
"remark-cli": "^1.0.0",
|
||||
"remark-comment-config": "^4.0.0",
|
||||
"remark-github": "^5.0.0",
|
||||
"remark-lint": "^4.0.0",
|
||||
"remark-validate-links": "^4.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.16.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "e2544c13058255f2144cb757066cd3342a1c8c46",
|
||||
"tarball": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.0.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "b4ca77b7acee5239c6a2eaa067840bbc9e325c15",
|
||||
"homepage": "https://github.com/wooorm/is-alphabetical#readme",
|
||||
"keywords": [
|
||||
"string",
|
||||
"character",
|
||||
"char",
|
||||
"code",
|
||||
"alphabetical"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "is-alphabetical",
|
||||
"nyc": {
|
||||
"check-coverage": true,
|
||||
"lines": 100,
|
||||
"functions": 100,
|
||||
"branches": 100
|
||||
},
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"plugins": [
|
||||
"comment-config",
|
||||
"github",
|
||||
"lint",
|
||||
"validate-links"
|
||||
],
|
||||
"settings": {
|
||||
"bullet": "*"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/is-alphabetical.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.js --bare -s isAlphabetical > is-alphabetical.js",
|
||||
"build-mangle": "esmangle < is-alphabetical.js > is-alphabetical.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"ignores": [
|
||||
"is-alphabetical.js",
|
||||
"is-alphabetical.min.js"
|
||||
]
|
||||
}
|
||||
}
|
58
tools/eslint/node_modules/is-alphabetical/readme.md
generated
vendored
Normal file
58
tools/eslint/node_modules/is-alphabetical/readme.md
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
# is-alphabetical [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
<!--lint disable heading-increment list-item-spacing-->
|
||||
|
||||
Check if a character is alphabetical.
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install is-alphabetical
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Dependencies:
|
||||
|
||||
```javascript
|
||||
var alphabetical = require('is-alphabetical');
|
||||
|
||||
alphabetical('a'); // true
|
||||
alphabetical('B'); // true
|
||||
alphabetical('0'); // false
|
||||
alphabetical('💩'); // false
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `alphabetical(character)`
|
||||
|
||||
Check whether the given character code (`number`), or the character
|
||||
code at the first position (`string`), is alphabetical.
|
||||
|
||||
## Related
|
||||
|
||||
* [`is-decimal`](https://github.com/wooorm/is-decimal)
|
||||
* [`is-hexadecimal`](https://github.com/wooorm/is-hexadecimal)
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/is-alphabetical.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/is-alphabetical
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/is-alphabetical.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/is-alphabetical
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
22
tools/eslint/node_modules/is-alphanumerical/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/is-alphanumerical/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
6
tools/eslint/node_modules/is-alphanumerical/history.md
generated
vendored
Normal file
6
tools/eslint/node_modules/is-alphanumerical/history.md
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<!--remark setext-->
|
||||
|
||||
<!--lint disable no-multiple-toplevel-headings -->
|
||||
|
||||
1.0.0 / 2016-07-12
|
||||
==================
|
29
tools/eslint/node_modules/is-alphanumerical/index.js
generated
vendored
Normal file
29
tools/eslint/node_modules/is-alphanumerical/index.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @author Titus Wormer
|
||||
* @copyright 2016 Titus Wormer
|
||||
* @license MIT
|
||||
* @module is-alphanumerical
|
||||
* @fileoverview Check if a character is alphanumerical.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/* eslint-env commonjs */
|
||||
|
||||
/* Dependencies. */
|
||||
var alphabetical = require('is-alphabetical');
|
||||
var decimal = require('is-decimal');
|
||||
|
||||
/* Expose. */
|
||||
module.exports = alphanumerical;
|
||||
|
||||
/**
|
||||
* Check whether the given character code, or the character
|
||||
* code at the first character, is alphanumerical.
|
||||
*
|
||||
* @param {string|number} character
|
||||
* @return {boolean} - Whether `character` is alphanumerical.
|
||||
*/
|
||||
function alphanumerical(character) {
|
||||
return alphabetical(character) || decimal(character);
|
||||
}
|
150
tools/eslint/node_modules/is-alphanumerical/package.json
generated
vendored
Normal file
150
tools/eslint/node_modules/is-alphanumerical/package.json
generated
vendored
Normal file
@ -0,0 +1,150 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "is-alphanumerical@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "is-alphanumerical",
|
||||
"name": "is-alphanumerical",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities"
|
||||
]
|
||||
],
|
||||
"_from": "is-alphanumerical@>=1.0.0 <2.0.0",
|
||||
"_id": "is-alphanumerical@1.0.0",
|
||||
"_inCache": true,
|
||||
"_location": "/is-alphanumerical",
|
||||
"_nodeVersion": "5.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/is-alphanumerical-1.0.0.tgz_1468317330202_0.4452017794828862"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
"_npmVersion": "3.3.6",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "is-alphanumerical@^1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "is-alphanumerical",
|
||||
"name": "is-alphanumerical",
|
||||
"rawSpec": "^1.0.0",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/parse-entities",
|
||||
"/stringify-entities"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.0.tgz",
|
||||
"_shasum": "e06492e719c1bf15dec239e4f1af5f67b4d6e7bf",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "is-alphanumerical@^1.0.0",
|
||||
"_where": "j:\\temp\\_git\\node-fork\\tools\\eslint\\node_modules\\parse-entities",
|
||||
"author": {
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wooorm/is-alphanumerical/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Titus Wormer",
|
||||
"email": "tituswormer@gmail.com",
|
||||
"url": "http://wooorm.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"is-alphabetical": "^1.0.0",
|
||||
"is-decimal": "^1.0.0"
|
||||
},
|
||||
"description": "Check if a character is alphanumerical",
|
||||
"devDependencies": {
|
||||
"browserify": "^13.0.1",
|
||||
"esmangle": "^1.0.1",
|
||||
"nyc": "^7.0.0",
|
||||
"remark-cli": "^1.0.0",
|
||||
"remark-comment-config": "^4.0.0",
|
||||
"remark-github": "^5.0.0",
|
||||
"remark-lint": "^4.0.0",
|
||||
"remark-validate-links": "^4.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.16.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "e06492e719c1bf15dec239e4f1af5f67b4d6e7bf",
|
||||
"tarball": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.0.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "94c7f06476ad0e5d4a6ea6ebc970ddbd4759da21",
|
||||
"homepage": "https://github.com/wooorm/is-alphanumerical#readme",
|
||||
"keywords": [
|
||||
"string",
|
||||
"character",
|
||||
"char",
|
||||
"code",
|
||||
"alphabetical",
|
||||
"numerical",
|
||||
"alphanumerical"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "is-alphanumerical",
|
||||
"nyc": {
|
||||
"check-coverage": true,
|
||||
"lines": 100,
|
||||
"functions": 100,
|
||||
"branches": 100
|
||||
},
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"remarkConfig": {
|
||||
"output": true,
|
||||
"plugins": [
|
||||
"comment-config",
|
||||
"github",
|
||||
"lint",
|
||||
"validate-links"
|
||||
],
|
||||
"settings": {
|
||||
"bullet": "*"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wooorm/is-alphanumerical.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
|
||||
"build-bundle": "browserify index.js --bare -s isAlphanumerical > is-alphanumerical.js",
|
||||
"build-mangle": "esmangle < is-alphanumerical.js > is-alphanumerical.min.js",
|
||||
"build-md": "remark . --quiet --frail",
|
||||
"lint": "xo",
|
||||
"test": "npm run build && npm run lint && npm run test-coverage",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"xo": {
|
||||
"space": true,
|
||||
"ignores": [
|
||||
"is-alphanumerical.js",
|
||||
"is-alphanumerical.min.js"
|
||||
]
|
||||
}
|
||||
}
|
60
tools/eslint/node_modules/is-alphanumerical/readme.md
generated
vendored
Normal file
60
tools/eslint/node_modules/is-alphanumerical/readme.md
generated
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
# is-alphanumerical [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
|
||||
|
||||
<!--lint disable heading-increment list-item-spacing-->
|
||||
|
||||
Check if a character is alphanumerical (`[a-zA-Z0-9]`).
|
||||
|
||||
## Installation
|
||||
|
||||
[npm][npm-install]:
|
||||
|
||||
```bash
|
||||
npm install is-alphanumerical
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
var alphanumerical = require('is-alphanumerical');
|
||||
|
||||
alphanumerical('a'); // true
|
||||
alphanumerical('Z'); // true
|
||||
alphanumerical('0'); // true
|
||||
alphanumerical(' '); // false
|
||||
alphanumerical('💩'); // false
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `alphanumerical(character)`
|
||||
|
||||
Check whether the given character code (`number`), or the character
|
||||
code at the first position (`string`), is alphanumerical.
|
||||
|
||||
## Related
|
||||
|
||||
* [`is-alphabetical`](https://github.com/wooorm/is-alphabetical)
|
||||
* [`is-decimal`](https://github.com/wooorm/is-decimal)
|
||||
* [`is-hexadecimal`](https://github.com/wooorm/is-hexadecimal)
|
||||
* [`is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)
|
||||
* [`is-word-character`](https://github.com/wooorm/is-word-character)
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[travis-badge]: https://img.shields.io/travis/wooorm/is-alphanumerical.svg
|
||||
|
||||
[travis]: https://travis-ci.org/wooorm/is-alphanumerical
|
||||
|
||||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/is-alphanumerical.svg
|
||||
|
||||
[codecov]: https://codecov.io/github/wooorm/is-alphanumerical
|
||||
|
||||
[npm-install]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: LICENSE
|
||||
|
||||
[author]: http://wooorm.com
|
22
tools/eslint/node_modules/is-decimal/LICENSE
generated
vendored
Normal file
22
tools/eslint/node_modules/is-decimal/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user