first commit
This commit is contained in:
26
build/node_modules/parse-int-x/.editorconfig
generated
vendored
Normal file
26
build/node_modules/parse-int-x/.editorconfig
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# This file is for unifying the coding style for different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# every file
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# 4 space indentation
|
||||
[*.py]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
# Tab indentation (no size specified)
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
1
build/node_modules/parse-int-x/.eslintignore
generated
vendored
Normal file
1
build/node_modules/parse-int-x/.eslintignore
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
lib/*
|
||||
6
build/node_modules/parse-int-x/.eslintrc.json
generated
vendored
Normal file
6
build/node_modules/parse-int-x/.eslintrc.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"@xotic750/eslint-config-standard-x"
|
||||
]
|
||||
}
|
||||
1
build/node_modules/parse-int-x/.nvmrc
generated
vendored
Normal file
1
build/node_modules/parse-int-x/.nvmrc
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
lts/*
|
||||
99
build/node_modules/parse-int-x/.travis.yml
generated
vendored
Normal file
99
build/node_modules/parse-int-x/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /^greenkeeper/.*$/
|
||||
notifications:
|
||||
email: false
|
||||
node_js:
|
||||
- "8.4"
|
||||
- "8.3"
|
||||
- "8.2"
|
||||
- "8.1"
|
||||
- "8.0"
|
||||
- "7.10"
|
||||
- "7.9"
|
||||
- "7.8"
|
||||
- "7.7"
|
||||
- "7.6"
|
||||
- "7.5"
|
||||
- "7.4"
|
||||
- "7.3"
|
||||
- "7.2"
|
||||
- "7.1"
|
||||
- "7.0"
|
||||
- "6.11"
|
||||
- "6.10"
|
||||
- "6.9"
|
||||
- "6.8"
|
||||
- "6.7"
|
||||
- "6.6"
|
||||
- "6.5"
|
||||
- "6.4"
|
||||
- "6.3"
|
||||
- "6.2"
|
||||
- "6.1"
|
||||
- "6.0"
|
||||
- "5.12"
|
||||
- "5.11"
|
||||
- "5.10"
|
||||
- "5.9"
|
||||
- "5.8"
|
||||
- "5.7"
|
||||
- "5.6"
|
||||
- "5.5"
|
||||
- "5.4"
|
||||
- "5.3"
|
||||
- "5.2"
|
||||
- "5.1"
|
||||
- "5.0"
|
||||
- "4.8"
|
||||
- "4.7"
|
||||
- "4.6"
|
||||
- "4.5"
|
||||
- "4.4"
|
||||
- "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.6" ]; then npm install -g npm@1.3 ; elif [ "${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 if [ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" = "0" ] || [ "${TRAVIS_NODE_VERSION:0:4}" = "iojs" ]; then npm install -g npm@4.5; elif [[ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" =~ ^[4-5]+$ ]]; then npm install -g npm@5.3; else npm install -g npm; fi; fi'
|
||||
install:
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g npm@1.3 && npm install -g npm@1.4.28 && npm install -g npm@2 && npm install && nvm use --delete-prefix "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
|
||||
script:
|
||||
- 'npm test'
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- node_js: "0.11"
|
||||
- node_js: "0.9"
|
||||
- node_js: "0.6"
|
||||
- node_js: "0.4"
|
||||
17
build/node_modules/parse-int-x/.uglifyjsrc.json
generated
vendored
Normal file
17
build/node_modules/parse-int-x/.uglifyjsrc.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"warnings": false,
|
||||
"parse": {},
|
||||
"compress": {
|
||||
"keep_fnames": true
|
||||
},
|
||||
"mangle": false,
|
||||
"output": {
|
||||
"ascii_only": true,
|
||||
"beautify": false,
|
||||
"comments": "some"
|
||||
},
|
||||
"sourceMap": {},
|
||||
"nameCache": null,
|
||||
"toplevel": false,
|
||||
"ie8": true
|
||||
}
|
||||
21
build/node_modules/parse-int-x/LICENSE
generated
vendored
Normal file
21
build/node_modules/parse-int-x/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
https://opensource.org/licenses/MIT
|
||||
|
||||
Copyright (c) 2017 Graham Fairweather.
|
||||
|
||||
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.
|
||||
125
build/node_modules/parse-int-x/README.md
generated
vendored
Normal file
125
build/node_modules/parse-int-x/README.md
generated
vendored
Normal file
@@ -0,0 +1,125 @@
|
||||
<a href="https://travis-ci.org/Xotic750/parse-int-x"
|
||||
title="Travis status">
|
||||
<img
|
||||
src="https://travis-ci.org/Xotic750/parse-int-x.svg?branch=master"
|
||||
alt="Travis status" height="18"/>
|
||||
</a>
|
||||
<a href="https://david-dm.org/Xotic750/parse-int-x"
|
||||
title="Dependency status">
|
||||
<img src="https://david-dm.org/Xotic750/parse-int-x.svg"
|
||||
alt="Dependency status" height="18"/>
|
||||
</a>
|
||||
<a href="https://david-dm.org/Xotic750/parse-int-x#info=devDependencies"
|
||||
title="devDependency status">
|
||||
<img src="https://david-dm.org/Xotic750/parse-int-x/dev-status.svg"
|
||||
alt="devDependency status" height="18"/>
|
||||
</a>
|
||||
<a href="https://badge.fury.io/js/parse-int-x" title="npm version">
|
||||
<img src="https://badge.fury.io/js/parse-int-x.svg"
|
||||
alt="npm version" height="18"/>
|
||||
</a>
|
||||
<a name="module_parse-int-x"></a>
|
||||
|
||||
## parse-int-x
|
||||
Parses a string argument and returns an integer of the specified radix.
|
||||
|
||||
**Version**: 2.0.0
|
||||
**Author**: Xotic750 <Xotic750@gmail.com>
|
||||
**License**: [MIT](<https://opensource.org/licenses/MIT>)
|
||||
**Copyright**: Xotic750
|
||||
|
||||
* [parse-int-x](#module_parse-int-x)
|
||||
* [`.parseInt`](#module_parse-int-x.parseInt)
|
||||
* [`.parseInt2016`](#module_parse-int-x.parseInt2016) ⇒ <code>number</code>
|
||||
* [`.parseInt2018`](#module_parse-int-x.parseInt2018) ⇒ <code>number</code>
|
||||
|
||||
<a name="module_parse-int-x.parseInt"></a>
|
||||
|
||||
### `parse-int-x.parseInt`
|
||||
Reference to parseInt2018.
|
||||
|
||||
**Kind**: static property of [<code>parse-int-x</code>](#module_parse-int-x)
|
||||
<a name="module_parse-int-x.parseInt2016"></a>
|
||||
|
||||
### `parse-int-x.parseInt2016` ⇒ <code>number</code>
|
||||
This method parses a string argument and returns an integer of the specified
|
||||
radix (the base in mathematical numeral systems). (ES2016)
|
||||
|
||||
**Kind**: static property of [<code>parse-int-x</code>](#module_parse-int-x)
|
||||
**Returns**: <code>number</code> - An integer number parsed from the given string. If the first
|
||||
character cannot be converted to a number, NaN is returned.
|
||||
**Throws**:
|
||||
|
||||
- <code>TypeError</code> If target is a Symbol or is not coercible.
|
||||
|
||||
|
||||
| Param | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| string | <code>string</code> | The value to parse. If the string argument is not a string, then it is converted to a string (using the ToString abstract operation). Leading whitespace in the string argument is ignored. |
|
||||
| radix | <code>number</code> | An integer between 2 and 36 that represents the radix (the base in mathematical numeral systems) of the above mentioned string. Specify 10 for the decimal numeral system commonly used by humans. Always specify this parameter to eliminate reader confusion and to guarantee predictable behavior. Different implementations produce different results when a radix is not specified, usually defaulting the value to 10. |
|
||||
|
||||
**Example**
|
||||
```js
|
||||
var $parseInt = require('parse-int-x').parseInt2016;
|
||||
|
||||
// The following examples all return 15
|
||||
$parseInt(' 0xF', 16);
|
||||
$parseInt(' F', 16);
|
||||
$parseInt('17', 8);
|
||||
$parseInt(021, 8);
|
||||
$parseInt('015', 10); // $parseInt(015, 10); will return 15
|
||||
$parseInt(15.99, 10);
|
||||
$parseInt('15,123', 10);
|
||||
$parseInt('FXX123', 16);
|
||||
$parseInt('1111', 2);
|
||||
$parseInt('15 * 3', 10);
|
||||
$parseInt('15e2', 10);
|
||||
$parseInt('15px', 10);
|
||||
$parseInt('12', 13);
|
||||
|
||||
//The following examples all return NaN:
|
||||
$parseInt('Hello', 8); // Not a number at all
|
||||
$parseInt('546', 2); // Digits are not valid for binary representations
|
||||
```
|
||||
<a name="module_parse-int-x.parseInt2018"></a>
|
||||
|
||||
### `parse-int-x.parseInt2018` ⇒ <code>number</code>
|
||||
This method parses a string argument and returns an integer of the specified
|
||||
radix (the base in mathematical numeral systems). (ES2018)
|
||||
|
||||
**Kind**: static property of [<code>parse-int-x</code>](#module_parse-int-x)
|
||||
**Returns**: <code>number</code> - An integer number parsed from the given string. If the first
|
||||
character cannot be converted to a number, NaN is returned.
|
||||
**Throws**:
|
||||
|
||||
- <code>TypeError</code> If target is a Symbol or is not coercible.
|
||||
|
||||
|
||||
| Param | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| string | <code>string</code> | The value to parse. If the string argument is not a string, then it is converted to a string (using the ToString abstract operation). Leading whitespace in the string argument is ignored. |
|
||||
| radix | <code>number</code> | An integer between 2 and 36 that represents the radix (the base in mathematical numeral systems) of the above mentioned string. Specify 10 for the decimal numeral system commonly used by humans. Always specify this parameter to eliminate reader confusion and to guarantee predictable behavior. Different implementations produce different results when a radix is not specified, usually defaulting the value to 10. |
|
||||
|
||||
**Example**
|
||||
```js
|
||||
var $parseInt = require('parse-int-x').parseInt2018;
|
||||
|
||||
// The following examples all return 15
|
||||
$parseInt(' 0xF', 16);
|
||||
$parseInt(' F', 16);
|
||||
$parseInt('17', 8);
|
||||
$parseInt(021, 8);
|
||||
$parseInt('015', 10); // $parseInt(015, 10); will return 15
|
||||
$parseInt(15.99, 10);
|
||||
$parseInt('15,123', 10);
|
||||
$parseInt('FXX123', 16);
|
||||
$parseInt('1111', 2);
|
||||
$parseInt('15 * 3', 10);
|
||||
$parseInt('15e2', 10);
|
||||
$parseInt('15px', 10);
|
||||
$parseInt('12', 13);
|
||||
|
||||
//The following examples all return NaN:
|
||||
$parseInt('Hello', 8); // Not a number at all
|
||||
$parseInt('546', 2); // Digits are not valid for binary representations
|
||||
```
|
||||
20
build/node_modules/parse-int-x/badges.html
generated
vendored
Normal file
20
build/node_modules/parse-int-x/badges.html
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<a href="https://travis-ci.org/Xotic750/@{PACKAGE-NAME}"
|
||||
title="Travis status">
|
||||
<img
|
||||
src="https://travis-ci.org/Xotic750/@{PACKAGE-NAME}.svg?branch=master"
|
||||
alt="Travis status" height="18"/>
|
||||
</a>
|
||||
<a href="https://david-dm.org/Xotic750/@{PACKAGE-NAME}"
|
||||
title="Dependency status">
|
||||
<img src="https://david-dm.org/Xotic750/@{PACKAGE-NAME}.svg"
|
||||
alt="Dependency status" height="18"/>
|
||||
</a>
|
||||
<a href="https://david-dm.org/Xotic750/@{PACKAGE-NAME}#info=devDependencies"
|
||||
title="devDependency status">
|
||||
<img src="https://david-dm.org/Xotic750/@{PACKAGE-NAME}/dev-status.svg"
|
||||
alt="devDependency status" height="18"/>
|
||||
</a>
|
||||
<a href="https://badge.fury.io/js/@{PACKAGE-NAME}" title="npm version">
|
||||
<img src="https://badge.fury.io/js/@{PACKAGE-NAME}.svg"
|
||||
alt="npm version" height="18"/>
|
||||
</a>
|
||||
123
build/node_modules/parse-int-x/index.js
generated
vendored
Normal file
123
build/node_modules/parse-int-x/index.js
generated
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
/**
|
||||
* @file Parses a string argument and returns an integer of the specified radix.
|
||||
* @version 2.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module parse-int-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var nativeParseInt = parseInt;
|
||||
var NAN = require('nan-x');
|
||||
var toStr = require('to-string-x');
|
||||
var trimLeft2016 = require('trim-left-x').trimLeft2016;
|
||||
var trimLeft2018 = require('trim-left-x').trimLeft2018;
|
||||
var chachedCtrs = require('cached-constructors-x');
|
||||
var castNumber = chachedCtrs.Number;
|
||||
var charAt = chachedCtrs.String.prototype.charAt;
|
||||
var hexRegex = /^[-+]?0[xX]/;
|
||||
var test = hexRegex.test;
|
||||
|
||||
var $parseInt2016 = function parseInt2016(string, radix) {
|
||||
var str = trimLeft2016(toStr(string));
|
||||
|
||||
return nativeParseInt(str, castNumber(radix) || (test.call(hexRegex, str) ? 16 : 10));
|
||||
};
|
||||
|
||||
var $parseInt2018 = function parseInt2018(string, radix) {
|
||||
var str = trimLeft2018(toStr(string));
|
||||
if (charAt.call(str, 0) === '\u180E') {
|
||||
return NAN;
|
||||
}
|
||||
|
||||
return nativeParseInt(str, castNumber(radix) || (test.call(hexRegex, str) ? 16 : 10));
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Reference to parseInt2018.
|
||||
*/
|
||||
parseInt: $parseInt2018,
|
||||
|
||||
/**
|
||||
* This method parses a string argument and returns an integer of the specified
|
||||
* radix (the base in mathematical numeral systems). (ES2016)
|
||||
*
|
||||
* @param {string} string - The value to parse. If the string argument is not a
|
||||
* string, then it is converted to a string (using the ToString abstract
|
||||
* operation). Leading whitespace in the string argument is ignored.
|
||||
* @param {number} radix - An integer between 2 and 36 that represents the radix
|
||||
* (the base in mathematical numeral systems) of the above mentioned string.
|
||||
* Specify 10 for the decimal numeral system commonly used by humans. Always
|
||||
* specify this parameter to eliminate reader confusion and to guarantee
|
||||
* predictable behavior. Different implementations produce different results
|
||||
* when a radix is not specified, usually defaulting the value to 10.
|
||||
* @throws {TypeError} If target is a Symbol or is not coercible.
|
||||
* @returns {number} An integer number parsed from the given string. If the first
|
||||
* character cannot be converted to a number, NaN is returned.
|
||||
* @example
|
||||
* var $parseInt = require('parse-int-x').parseInt2016;
|
||||
*
|
||||
* // The following examples all return 15
|
||||
* $parseInt(' 0xF', 16);
|
||||
* $parseInt(' F', 16);
|
||||
* $parseInt('17', 8);
|
||||
* $parseInt(021, 8);
|
||||
* $parseInt('015', 10); // $parseInt(015, 10); will return 15
|
||||
* $parseInt(15.99, 10);
|
||||
* $parseInt('15,123', 10);
|
||||
* $parseInt('FXX123', 16);
|
||||
* $parseInt('1111', 2);
|
||||
* $parseInt('15 * 3', 10);
|
||||
* $parseInt('15e2', 10);
|
||||
* $parseInt('15px', 10);
|
||||
* $parseInt('12', 13);
|
||||
*
|
||||
* //The following examples all return NaN:
|
||||
* $parseInt('Hello', 8); // Not a number at all
|
||||
* $parseInt('546', 2); // Digits are not valid for binary representations
|
||||
*/
|
||||
parseInt2016: $parseInt2016,
|
||||
|
||||
/**
|
||||
* This method parses a string argument and returns an integer of the specified
|
||||
* radix (the base in mathematical numeral systems). (ES2018)
|
||||
*
|
||||
* @param {string} string - The value to parse. If the string argument is not a
|
||||
* string, then it is converted to a string (using the ToString abstract
|
||||
* operation). Leading whitespace in the string argument is ignored.
|
||||
* @param {number} radix - An integer between 2 and 36 that represents the radix
|
||||
* (the base in mathematical numeral systems) of the above mentioned string.
|
||||
* Specify 10 for the decimal numeral system commonly used by humans. Always
|
||||
* specify this parameter to eliminate reader confusion and to guarantee
|
||||
* predictable behavior. Different implementations produce different results
|
||||
* when a radix is not specified, usually defaulting the value to 10.
|
||||
* @throws {TypeError} If target is a Symbol or is not coercible.
|
||||
* @returns {number} An integer number parsed from the given string. If the first
|
||||
* character cannot be converted to a number, NaN is returned.
|
||||
* @example
|
||||
* var $parseInt = require('parse-int-x').parseInt2018;
|
||||
*
|
||||
* // The following examples all return 15
|
||||
* $parseInt(' 0xF', 16);
|
||||
* $parseInt(' F', 16);
|
||||
* $parseInt('17', 8);
|
||||
* $parseInt(021, 8);
|
||||
* $parseInt('015', 10); // $parseInt(015, 10); will return 15
|
||||
* $parseInt(15.99, 10);
|
||||
* $parseInt('15,123', 10);
|
||||
* $parseInt('FXX123', 16);
|
||||
* $parseInt('1111', 2);
|
||||
* $parseInt('15 * 3', 10);
|
||||
* $parseInt('15e2', 10);
|
||||
* $parseInt('15px', 10);
|
||||
* $parseInt('12', 13);
|
||||
*
|
||||
* //The following examples all return NaN:
|
||||
* $parseInt('Hello', 8); // Not a number at all
|
||||
* $parseInt('546', 2); // Digits are not valid for binary representations
|
||||
*/
|
||||
parseInt2018: $parseInt2018
|
||||
};
|
||||
947
build/node_modules/parse-int-x/lib/parse-int-x.js
generated
vendored
Normal file
947
build/node_modules/parse-int-x/lib/parse-int-x.js
generated
vendored
Normal file
@@ -0,0 +1,947 @@
|
||||
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file Parses a string argument and returns an integer of the specified radix.
|
||||
* @version 2.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module parse-int-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var nativeParseInt = parseInt;
|
||||
var NAN = _dereq_('nan-x');
|
||||
var toStr = _dereq_('to-string-x');
|
||||
var trimLeft2016 = _dereq_('trim-left-x').trimLeft2016;
|
||||
var trimLeft2018 = _dereq_('trim-left-x').trimLeft2018;
|
||||
var chachedCtrs = _dereq_('cached-constructors-x');
|
||||
var castNumber = chachedCtrs.Number;
|
||||
var charAt = chachedCtrs.String.prototype.charAt;
|
||||
var hexRegex = /^[-+]?0[xX]/;
|
||||
var test = hexRegex.test;
|
||||
|
||||
var $parseInt2016 = function parseInt2016(string, radix) {
|
||||
var str = trimLeft2016(toStr(string));
|
||||
|
||||
return nativeParseInt(str, castNumber(radix) || (test.call(hexRegex, str) ? 16 : 10));
|
||||
};
|
||||
|
||||
var $parseInt2018 = function parseInt2018(string, radix) {
|
||||
var str = trimLeft2018(toStr(string));
|
||||
if (charAt.call(str, 0) === '\u180E') {
|
||||
return NAN;
|
||||
}
|
||||
|
||||
return nativeParseInt(str, castNumber(radix) || (test.call(hexRegex, str) ? 16 : 10));
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Reference to parseInt2018.
|
||||
*/
|
||||
parseInt: $parseInt2018,
|
||||
|
||||
/**
|
||||
* This method parses a string argument and returns an integer of the specified
|
||||
* radix (the base in mathematical numeral systems). (ES2016)
|
||||
*
|
||||
* @param {string} string - The value to parse. If the string argument is not a
|
||||
* string, then it is converted to a string (using the ToString abstract
|
||||
* operation). Leading whitespace in the string argument is ignored.
|
||||
* @param {number} radix - An integer between 2 and 36 that represents the radix
|
||||
* (the base in mathematical numeral systems) of the above mentioned string.
|
||||
* Specify 10 for the decimal numeral system commonly used by humans. Always
|
||||
* specify this parameter to eliminate reader confusion and to guarantee
|
||||
* predictable behavior. Different implementations produce different results
|
||||
* when a radix is not specified, usually defaulting the value to 10.
|
||||
* @throws {TypeError} If target is a Symbol or is not coercible.
|
||||
* @returns {number} An integer number parsed from the given string. If the first
|
||||
* character cannot be converted to a number, NaN is returned.
|
||||
* @example
|
||||
* var $parseInt = require('parse-int-x').parseInt2016;
|
||||
*
|
||||
* // The following examples all return 15
|
||||
* $parseInt(' 0xF', 16);
|
||||
* $parseInt(' F', 16);
|
||||
* $parseInt('17', 8);
|
||||
* $parseInt(021, 8);
|
||||
* $parseInt('015', 10); // $parseInt(015, 10); will return 15
|
||||
* $parseInt(15.99, 10);
|
||||
* $parseInt('15,123', 10);
|
||||
* $parseInt('FXX123', 16);
|
||||
* $parseInt('1111', 2);
|
||||
* $parseInt('15 * 3', 10);
|
||||
* $parseInt('15e2', 10);
|
||||
* $parseInt('15px', 10);
|
||||
* $parseInt('12', 13);
|
||||
*
|
||||
* //The following examples all return NaN:
|
||||
* $parseInt('Hello', 8); // Not a number at all
|
||||
* $parseInt('546', 2); // Digits are not valid for binary representations
|
||||
*/
|
||||
parseInt2016: $parseInt2016,
|
||||
|
||||
/**
|
||||
* This method parses a string argument and returns an integer of the specified
|
||||
* radix (the base in mathematical numeral systems). (ES2018)
|
||||
*
|
||||
* @param {string} string - The value to parse. If the string argument is not a
|
||||
* string, then it is converted to a string (using the ToString abstract
|
||||
* operation). Leading whitespace in the string argument is ignored.
|
||||
* @param {number} radix - An integer between 2 and 36 that represents the radix
|
||||
* (the base in mathematical numeral systems) of the above mentioned string.
|
||||
* Specify 10 for the decimal numeral system commonly used by humans. Always
|
||||
* specify this parameter to eliminate reader confusion and to guarantee
|
||||
* predictable behavior. Different implementations produce different results
|
||||
* when a radix is not specified, usually defaulting the value to 10.
|
||||
* @throws {TypeError} If target is a Symbol or is not coercible.
|
||||
* @returns {number} An integer number parsed from the given string. If the first
|
||||
* character cannot be converted to a number, NaN is returned.
|
||||
* @example
|
||||
* var $parseInt = require('parse-int-x').parseInt2018;
|
||||
*
|
||||
* // The following examples all return 15
|
||||
* $parseInt(' 0xF', 16);
|
||||
* $parseInt(' F', 16);
|
||||
* $parseInt('17', 8);
|
||||
* $parseInt(021, 8);
|
||||
* $parseInt('015', 10); // $parseInt(015, 10); will return 15
|
||||
* $parseInt(15.99, 10);
|
||||
* $parseInt('15,123', 10);
|
||||
* $parseInt('FXX123', 16);
|
||||
* $parseInt('1111', 2);
|
||||
* $parseInt('15 * 3', 10);
|
||||
* $parseInt('15e2', 10);
|
||||
* $parseInt('15px', 10);
|
||||
* $parseInt('12', 13);
|
||||
*
|
||||
* //The following examples all return NaN:
|
||||
* $parseInt('Hello', 8); // Not a number at all
|
||||
* $parseInt('546', 2); // Digits are not valid for binary representations
|
||||
*/
|
||||
parseInt2018: $parseInt2018
|
||||
};
|
||||
|
||||
},{"cached-constructors-x":2,"nan-x":6,"to-string-x":9,"trim-left-x":10}],2:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file Constructors cached from literals.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module cached-constructors-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructors cached from literals.
|
||||
*
|
||||
* @type Object
|
||||
* @example
|
||||
* var constructors = require('cached-constructors-x');
|
||||
*/
|
||||
module.exports = {
|
||||
Array: [].constructor,
|
||||
Boolean: true.constructor,
|
||||
Number: (0).constructor,
|
||||
Object: {}.constructor,
|
||||
RegExp: (/(?:)/).constructor,
|
||||
String: ''.constructor
|
||||
};
|
||||
|
||||
},{}],3:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file Checks if `value` is `null` or `undefined`.
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-nil-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isUndefined = _dereq_('validate.io-undefined');
|
||||
var isNull = _dereq_('lodash.isnull');
|
||||
|
||||
/**
|
||||
* Checks if `value` is `null` or `undefined`.
|
||||
*
|
||||
* @param {*} value - The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
||||
* @example
|
||||
* var isNil = require('is-nil-x');
|
||||
*
|
||||
* isNil(null); // => true
|
||||
* isNil(void 0); // => true
|
||||
* isNil(NaN); // => false
|
||||
*/
|
||||
module.exports = function isNil(value) {
|
||||
return isNull(value) || isUndefined(value);
|
||||
};
|
||||
|
||||
},{"lodash.isnull":5,"validate.io-undefined":11}],4:[function(_dereq_,module,exports){
|
||||
'use strict';
|
||||
|
||||
var toStr = Object.prototype.toString;
|
||||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
|
||||
|
||||
if (hasSymbols) {
|
||||
var symToStr = Symbol.prototype.toString;
|
||||
var symStringRegex = /^Symbol\(.*\)$/;
|
||||
var isSymbolObject = function isSymbolObject(value) {
|
||||
if (typeof value.valueOf() !== 'symbol') { return false; }
|
||||
return symStringRegex.test(symToStr.call(value));
|
||||
};
|
||||
module.exports = function isSymbol(value) {
|
||||
if (typeof value === 'symbol') { return true; }
|
||||
if (toStr.call(value) !== '[object Symbol]') { return false; }
|
||||
try {
|
||||
return isSymbolObject(value);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
} else {
|
||||
module.exports = function isSymbol(value) {
|
||||
// this environment does not support Symbols.
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
},{}],5:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <https://lodash.com/license>
|
||||
*/
|
||||
|
||||
/**
|
||||
* Checks if `value` is `null`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Lang
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is `null`, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.isNull(null);
|
||||
* // => true
|
||||
*
|
||||
* _.isNull(void 0);
|
||||
* // => false
|
||||
*/
|
||||
function isNull(value) {
|
||||
return value === null;
|
||||
}
|
||||
|
||||
module.exports = isNull;
|
||||
|
||||
},{}],6:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file The constant NaN derived mathematically by 0 / 0.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module nan-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* The constant NaN derived mathematically by 0 / 0.
|
||||
*
|
||||
* @type number
|
||||
* @example
|
||||
* var NAN = require('nan-x');
|
||||
*
|
||||
* NAN !== NAN; // true
|
||||
* NAN === NAN; // false
|
||||
*/
|
||||
module.exports = 0 / 0;
|
||||
|
||||
},{}],7:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file Requires an argument is corecible then converts using ToString.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module require-coercible-to-string-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var requireObjectCoercible = _dereq_('require-object-coercible-x');
|
||||
var toStr = _dereq_('to-string-x');
|
||||
|
||||
/**
|
||||
* This method requires an argument is corecible then converts using ToString.
|
||||
*
|
||||
* @param {*} value - The value to converted to a string.
|
||||
* @throws {TypeError} If value is null or undefined.
|
||||
* @returns {string} The value as a string.
|
||||
* @example
|
||||
* var requireCoercibleToString = require('require-coercible-to-string-x');
|
||||
*
|
||||
* requireCoercibleToString(); // TypeError
|
||||
* requireCoercibleToString(null); // TypeError
|
||||
* requireCoercibleToString(Symbol('')); // TypeError
|
||||
* requireCoercibleToString(Object.create(null)); // TypeError
|
||||
* requireCoercibleToString(1); // '1'
|
||||
* requireCoercibleToString(true); // 'true'
|
||||
*/
|
||||
module.exports = function requireCoercibleToString(value) {
|
||||
return toStr(requireObjectCoercible(value));
|
||||
};
|
||||
|
||||
},{"require-object-coercible-x":8,"to-string-x":9}],8:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file ES6-compliant shim for RequireObjectCoercible.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-requireobjectcoercible|7.2.1 RequireObjectCoercible ( argument )}
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module require-object-coercible-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isNil = _dereq_('is-nil-x');
|
||||
|
||||
/**
|
||||
* The abstract operation RequireObjectCoercible throws an error if argument
|
||||
* is a value that cannot be converted to an Object using ToObject.
|
||||
*
|
||||
* @param {*} value - The `value` to check.
|
||||
* @throws {TypeError} If `value` is a `null` or `undefined`.
|
||||
* @returns {string} The `value`.
|
||||
* @example
|
||||
* var RequireObjectCoercible = require('require-object-coercible-x');
|
||||
*
|
||||
* RequireObjectCoercible(); // TypeError
|
||||
* RequireObjectCoercible(null); // TypeError
|
||||
* RequireObjectCoercible('abc'); // 'abc'
|
||||
* RequireObjectCoercible(true); // true
|
||||
* RequireObjectCoercible(Symbol('foo')); // Symbol('foo')
|
||||
*/
|
||||
module.exports = function RequireObjectCoercible(value) {
|
||||
if (isNil(value)) {
|
||||
throw new TypeError('Cannot call method on ' + value);
|
||||
}
|
||||
|
||||
return value;
|
||||
};
|
||||
|
||||
},{"is-nil-x":3}],9:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file ES6-compliant shim for ToString.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tostring|7.1.12 ToString ( argument )}
|
||||
* @version 1.4.2
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-string-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var castString = ''.constructor;
|
||||
var isSymbol = _dereq_('is-symbol');
|
||||
|
||||
/**
|
||||
* The abstract operation ToString converts argument to a value of type String.
|
||||
*
|
||||
* @param {*} value - The value to convert to a string.
|
||||
* @throws {TypeError} If `value` is a Symbol.
|
||||
* @returns {string} The converted value.
|
||||
* @example
|
||||
* var $toString = require('to-string-x');
|
||||
*
|
||||
* $toString(); // 'undefined'
|
||||
* $toString(null); // 'null'
|
||||
* $toString('abc'); // 'abc'
|
||||
* $toString(true); // 'true'
|
||||
* $toString(Symbol('foo')); // TypeError
|
||||
* $toString(Symbol.iterator); // TypeError
|
||||
* $toString(Object(Symbol.iterator)); // TypeError
|
||||
* $toString(Object.create(null)); // TypeError
|
||||
*/
|
||||
module.exports = function ToString(value) {
|
||||
if (isSymbol(value)) {
|
||||
throw new TypeError('Cannot convert a Symbol value to a string');
|
||||
}
|
||||
|
||||
return castString(value);
|
||||
};
|
||||
|
||||
},{"is-symbol":4}],10:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file This method removes whitespace from the left end of a string.
|
||||
* @version 3.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module trim-left-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var requireCoercibleToString = _dereq_('require-coercible-to-string-x');
|
||||
var Rx = _dereq_('cached-constructors-x').RegExp;
|
||||
var reLeft2016 = new Rx('^[' + _dereq_('white-space-x').string2016 + ']+');
|
||||
var reLeft2018 = new Rx('^[' + _dereq_('white-space-x').string2018 + ']+');
|
||||
var replace = ''.replace;
|
||||
|
||||
var $trimLeft2016 = function trimLeft2016(string) {
|
||||
return replace.call(requireCoercibleToString(string), reLeft2016, '');
|
||||
};
|
||||
|
||||
var $trimLeft2018 = function trimLeft2018(string) {
|
||||
return replace.call(requireCoercibleToString(string), reLeft2018, '');
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* A reference to leftTrim2018.
|
||||
*/
|
||||
trimLeft: $trimLeft2018,
|
||||
|
||||
/**
|
||||
* This method removes whitespace from the left end of a string. (ES2016)
|
||||
*
|
||||
* @param {string} string - The string to trim the left end whitespace from.
|
||||
* @throws {TypeError} If string is null or undefined or not coercible.
|
||||
* @returns {string} The left trimmed string.
|
||||
* @example
|
||||
* var trimLeft = require('trim-left-x').trimLeft2016;
|
||||
*
|
||||
* trimLeft(' \t\na \t\n') === 'a \t\n'; // true
|
||||
*/
|
||||
trimLeft2016: $trimLeft2016,
|
||||
|
||||
/**
|
||||
* This method removes whitespace from the left end of a string. (ES2018)
|
||||
*
|
||||
* @param {string} string - The string to trim the left end whitespace from.
|
||||
* @throws {TypeError} If string is null or undefined or not coercible.
|
||||
* @returns {string} The left trimmed string.
|
||||
* @example
|
||||
* var trimLeft = require('trim-left-x').trimLeft2018;
|
||||
*
|
||||
* trimLeft(' \t\na \t\n') === 'a \t\n'; // true
|
||||
*/
|
||||
trimLeft2018: $trimLeft2018
|
||||
};
|
||||
|
||||
},{"cached-constructors-x":2,"require-coercible-to-string-x":7,"white-space-x":12}],11:[function(_dereq_,module,exports){
|
||||
/**
|
||||
*
|
||||
* VALIDATE: undefined
|
||||
*
|
||||
*
|
||||
* DESCRIPTION:
|
||||
* - Validates if a value is undefined.
|
||||
*
|
||||
*
|
||||
* NOTES:
|
||||
* [1]
|
||||
*
|
||||
*
|
||||
* TODO:
|
||||
* [1]
|
||||
*
|
||||
*
|
||||
* LICENSE:
|
||||
* MIT
|
||||
*
|
||||
* Copyright (c) 2014. Athan Reines.
|
||||
*
|
||||
*
|
||||
* AUTHOR:
|
||||
* Athan Reines. kgryte@gmail.com. 2014.
|
||||
*
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* FUNCTION: isUndefined( value )
|
||||
* Validates if a value is undefined.
|
||||
*
|
||||
* @param {*} value - value to be validated
|
||||
* @returns {Boolean} boolean indicating whether value is undefined
|
||||
*/
|
||||
function isUndefined( value ) {
|
||||
return value === void 0;
|
||||
} // end FUNCTION isUndefined()
|
||||
|
||||
|
||||
// EXPORTS //
|
||||
|
||||
module.exports = isUndefined;
|
||||
|
||||
},{}],12:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file List of ECMAScript white space characters.
|
||||
* @version 3.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module white-space-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* A record of a white space character.
|
||||
*
|
||||
* @typedef {Object} CharRecord
|
||||
* @property {number} code - The character code.
|
||||
* @property {string} description - A description of the character.
|
||||
* @property {boolean} es5 - Whether the spec lists this as a white space.
|
||||
* @property {boolean} es2015 - Whether the spec lists this as a white space.
|
||||
* @property {boolean} es2016 - Whether the spec lists this as a white space.
|
||||
* @property {boolean} es2017 - Whether the spec lists this as a white space.
|
||||
* @property {boolean} es2018 - Whether the spec lists this as a white space.
|
||||
* @property {string} string - The character string.
|
||||
*/
|
||||
|
||||
/**
|
||||
* An array of the whitespace char codes, string, descriptions and language
|
||||
* presence in the specifications.
|
||||
*
|
||||
* @private
|
||||
* @type Array.<CharRecord>
|
||||
*/
|
||||
var list = [
|
||||
{
|
||||
code: 0x0009,
|
||||
description: 'Tab',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u0009'
|
||||
},
|
||||
{
|
||||
code: 0x000a,
|
||||
description: 'Line Feed',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u000a'
|
||||
},
|
||||
{
|
||||
code: 0x000b,
|
||||
description: 'Vertical Tab',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u000b'
|
||||
},
|
||||
{
|
||||
code: 0x000c,
|
||||
description: 'Form Feed',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u000c'
|
||||
},
|
||||
{
|
||||
code: 0x000d,
|
||||
description: 'Carriage Return',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u000d'
|
||||
},
|
||||
{
|
||||
code: 0x0020,
|
||||
description: 'Space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u0020'
|
||||
},
|
||||
/*
|
||||
{
|
||||
code: 0x0085,
|
||||
description: 'Next line',
|
||||
es5: false,
|
||||
es2015: false,
|
||||
es2016: false,
|
||||
es2017: false,
|
||||
es2018: false,
|
||||
string: '\u0085'
|
||||
}
|
||||
*/
|
||||
{
|
||||
code: 0x00a0,
|
||||
description: 'No-break space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u00a0'
|
||||
},
|
||||
{
|
||||
code: 0x1680,
|
||||
description: 'Ogham space mark',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u1680'
|
||||
},
|
||||
{
|
||||
code: 0x180e,
|
||||
description: 'Mongolian vowel separator',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: false,
|
||||
es2018: false,
|
||||
string: '\u180e'
|
||||
},
|
||||
{
|
||||
code: 0x2000,
|
||||
description: 'En quad',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2000'
|
||||
},
|
||||
{
|
||||
code: 0x2001,
|
||||
description: 'Em quad',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2001'
|
||||
},
|
||||
{
|
||||
code: 0x2002,
|
||||
description: 'En space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2002'
|
||||
},
|
||||
{
|
||||
code: 0x2003,
|
||||
description: 'Em space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2003'
|
||||
},
|
||||
{
|
||||
code: 0x2004,
|
||||
description: 'Three-per-em space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2004'
|
||||
},
|
||||
{
|
||||
code: 0x2005,
|
||||
description: 'Four-per-em space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2005'
|
||||
},
|
||||
{
|
||||
code: 0x2006,
|
||||
description: 'Six-per-em space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2006'
|
||||
},
|
||||
{
|
||||
code: 0x2007,
|
||||
description: 'Figure space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2007'
|
||||
},
|
||||
{
|
||||
code: 0x2008,
|
||||
description: 'Punctuation space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2008'
|
||||
},
|
||||
{
|
||||
code: 0x2009,
|
||||
description: 'Thin space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2009'
|
||||
},
|
||||
{
|
||||
code: 0x200a,
|
||||
description: 'Hair space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u200a'
|
||||
},
|
||||
/*
|
||||
{
|
||||
code: 0x200b,
|
||||
description: 'Zero width space',
|
||||
es5: false,
|
||||
es2015: false,
|
||||
es2016: false,
|
||||
es2017: false,
|
||||
es2018: false,
|
||||
string: '\u200b'
|
||||
},
|
||||
*/
|
||||
{
|
||||
code: 0x2028,
|
||||
description: 'Line separator',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2028'
|
||||
},
|
||||
{
|
||||
code: 0x2029,
|
||||
description: 'Paragraph separator',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u2029'
|
||||
},
|
||||
{
|
||||
code: 0x202f,
|
||||
description: 'Narrow no-break space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u202f'
|
||||
},
|
||||
{
|
||||
code: 0x205f,
|
||||
description: 'Medium mathematical space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u205f'
|
||||
},
|
||||
{
|
||||
code: 0x3000,
|
||||
description: 'Ideographic space',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\u3000'
|
||||
},
|
||||
{
|
||||
code: 0xfeff,
|
||||
description: 'Byte Order Mark',
|
||||
es5: true,
|
||||
es2015: true,
|
||||
es2016: true,
|
||||
es2017: true,
|
||||
es2018: true,
|
||||
string: '\ufeff'
|
||||
}
|
||||
];
|
||||
|
||||
var stringES2016 = '';
|
||||
var stringES2018 = '';
|
||||
var length = list.length;
|
||||
for (var i = 0; i < length; i += 1) {
|
||||
if (list[i].es2016) {
|
||||
stringES2016 += list[i].string;
|
||||
}
|
||||
|
||||
if (list[i].es2018) {
|
||||
stringES2018 += list[i].string;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* An array of the whitespace char codes, string, descriptions and language
|
||||
* presence in the specifications.
|
||||
*
|
||||
* @type Array.<CharRecord>
|
||||
* @example
|
||||
* var whiteSpace = require('white-space-x');
|
||||
* whiteSpaces.list.foreach(function (item) {
|
||||
* console.log(lib.description, item.code, item.string);
|
||||
* });
|
||||
*/
|
||||
list: list,
|
||||
/**
|
||||
* A string of the ES2017 to ES2018 whitespace characters.
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
string: stringES2018,
|
||||
|
||||
/**
|
||||
* A string of the ES5 to ES2016 whitespace characters.
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
string5: stringES2016,
|
||||
|
||||
/**
|
||||
* A string of the ES5 to ES2016 whitespace characters.
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
string2015: stringES2016,
|
||||
|
||||
/**
|
||||
* A string of the ES5 to ES2016 whitespace characters.
|
||||
*
|
||||
* @type string
|
||||
* @example
|
||||
* var whiteSpace = require('white-space-x');
|
||||
* var characters = [
|
||||
* '\u0009',
|
||||
* '\u000a',
|
||||
* '\u000b',
|
||||
* '\u000c',
|
||||
* '\u000d',
|
||||
* '\u0020',
|
||||
* '\u00a0',
|
||||
* '\u1680',
|
||||
* '\u180e',
|
||||
* '\u2000',
|
||||
* '\u2001',
|
||||
* '\u2002',
|
||||
* '\u2003',
|
||||
* '\u2004',
|
||||
* '\u2005',
|
||||
* '\u2006',
|
||||
* '\u2007',
|
||||
* '\u2008',
|
||||
* '\u2009',
|
||||
* '\u200a',
|
||||
* '\u2028',
|
||||
* '\u2029',
|
||||
* '\u202f',
|
||||
* '\u205f',
|
||||
* '\u3000',
|
||||
* '\ufeff'
|
||||
* ];
|
||||
* var ws = characters.join('');
|
||||
* var re1 = new RegExp('^[' + whiteSpace.string2016 + ']+$)');
|
||||
* re1.test(ws); // true
|
||||
*/
|
||||
string2016: stringES2016,
|
||||
|
||||
/**
|
||||
* A string of the ES2017 to ES2018 whitespace characters.
|
||||
*
|
||||
* @type string
|
||||
*/
|
||||
string2017: stringES2018,
|
||||
|
||||
/**
|
||||
* A string of the ES2017 to ES2018 whitespace characters.
|
||||
*
|
||||
* @type string
|
||||
* @example
|
||||
* var whiteSpace = require('white-space-x');
|
||||
* var characters = [
|
||||
* '\u0009',
|
||||
* '\u000a',
|
||||
* '\u000b',
|
||||
* '\u000c',
|
||||
* '\u000d',
|
||||
* '\u0020',
|
||||
* '\u00a0',
|
||||
* '\u1680',
|
||||
* '\u2000',
|
||||
* '\u2001',
|
||||
* '\u2002',
|
||||
* '\u2003',
|
||||
* '\u2004',
|
||||
* '\u2005',
|
||||
* '\u2006',
|
||||
* '\u2007',
|
||||
* '\u2008',
|
||||
* '\u2009',
|
||||
* '\u200a',
|
||||
* '\u2028',
|
||||
* '\u2029',
|
||||
* '\u202f',
|
||||
* '\u205f',
|
||||
* '\u3000',
|
||||
* '\ufeff'
|
||||
* ];
|
||||
* var ws = characters.join('');
|
||||
* var re1 = new RegExp('^[' + whiteSpace.string2018 + ']+$)');
|
||||
* re1.test(ws); // true
|
||||
*/
|
||||
string2018: stringES2018
|
||||
};
|
||||
|
||||
},{}]},{},[1])(1)
|
||||
});
|
||||
75
build/node_modules/parse-int-x/lib/parse-int-x.min.js
generated
vendored
Normal file
75
build/node_modules/parse-int-x/lib/parse-int-x.min.js
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){/**
|
||||
* @file Parses a string argument and returns an integer of the specified radix.
|
||||
* @version 2.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module parse-int-x
|
||||
*/
|
||||
"use strict";var nativeParseInt=parseInt,NAN=_dereq_("nan-x"),toStr=_dereq_("to-string-x"),trimLeft2016=_dereq_("trim-left-x").trimLeft2016,trimLeft2018=_dereq_("trim-left-x").trimLeft2018,chachedCtrs=_dereq_("cached-constructors-x"),castNumber=chachedCtrs.Number,charAt=chachedCtrs.String.prototype.charAt,hexRegex=/^[-+]?0[xX]/,test=hexRegex.test,$parseInt2018=function parseInt2018(string,radix){var str=trimLeft2018(toStr(string));return"\u180e"===charAt.call(str,0)?NAN:nativeParseInt(str,castNumber(radix)||(test.call(hexRegex,str)?16:10))};module.exports={parseInt:$parseInt2018,parseInt2016:function parseInt2016(string,radix){var str=trimLeft2016(toStr(string));return nativeParseInt(str,castNumber(radix)||(test.call(hexRegex,str)?16:10))},parseInt2018:$parseInt2018}},{"cached-constructors-x":2,"nan-x":6,"to-string-x":9,"trim-left-x":10}],2:[function(_dereq_,module,exports){/**
|
||||
* @file Constructors cached from literals.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module cached-constructors-x
|
||||
*/
|
||||
"use strict";module.exports={Array:[].constructor,Boolean:(!0).constructor,Number:(0).constructor,Object:{}.constructor,RegExp:/(?:)/.constructor,String:"".constructor}},{}],3:[function(_dereq_,module,exports){/**
|
||||
* @file Checks if `value` is `null` or `undefined`.
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-nil-x
|
||||
*/
|
||||
"use strict";var isUndefined=_dereq_("validate.io-undefined"),isNull=_dereq_("lodash.isnull");module.exports=function isNil(value){return isNull(value)||isUndefined(value)}},{"lodash.isnull":5,"validate.io-undefined":11}],4:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function isSymbolObject(value){return"symbol"==typeof value.valueOf()&&symStringRegex.test(symToStr.call(value))};module.exports=function isSymbol(value){if("symbol"==typeof value)return!0;if("[object Symbol]"!==toStr.call(value))return!1;try{return isSymbolObject(value)}catch(e){return!1}}}else module.exports=function isSymbol(value){return!1}},{}],5:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],6:[function(_dereq_,module,exports){/**
|
||||
* @file The constant NaN derived mathematically by 0 / 0.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module nan-x
|
||||
*/
|
||||
"use strict";module.exports=NaN},{}],7:[function(_dereq_,module,exports){/**
|
||||
* @file Requires an argument is corecible then converts using ToString.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module require-coercible-to-string-x
|
||||
*/
|
||||
"use strict";var requireObjectCoercible=_dereq_("require-object-coercible-x"),toStr=_dereq_("to-string-x");module.exports=function requireCoercibleToString(value){return toStr(requireObjectCoercible(value))}},{"require-object-coercible-x":8,"to-string-x":9}],8:[function(_dereq_,module,exports){/**
|
||||
* @file ES6-compliant shim for RequireObjectCoercible.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-requireobjectcoercible|7.2.1 RequireObjectCoercible ( argument )}
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module require-object-coercible-x
|
||||
*/
|
||||
"use strict";var isNil=_dereq_("is-nil-x");module.exports=function RequireObjectCoercible(value){if(isNil(value))throw new TypeError("Cannot call method on "+value);return value}},{"is-nil-x":3}],9:[function(_dereq_,module,exports){/**
|
||||
* @file ES6-compliant shim for ToString.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tostring|7.1.12 ToString ( argument )}
|
||||
* @version 1.4.2
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-string-x
|
||||
*/
|
||||
"use strict";var castString="".constructor,isSymbol=_dereq_("is-symbol");module.exports=function ToString(value){if(isSymbol(value))throw new TypeError("Cannot convert a Symbol value to a string");return castString(value)}},{"is-symbol":4}],10:[function(_dereq_,module,exports){/**
|
||||
* @file This method removes whitespace from the left end of a string.
|
||||
* @version 3.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module trim-left-x
|
||||
*/
|
||||
"use strict";var requireCoercibleToString=_dereq_("require-coercible-to-string-x"),Rx=_dereq_("cached-constructors-x").RegExp,reLeft2016=new Rx("^["+_dereq_("white-space-x").string2016+"]+"),reLeft2018=new Rx("^["+_dereq_("white-space-x").string2018+"]+"),replace="".replace,$trimLeft2018=function trimLeft2018(string){return replace.call(requireCoercibleToString(string),reLeft2018,"")};module.exports={trimLeft:$trimLeft2018,trimLeft2016:function trimLeft2016(string){return replace.call(requireCoercibleToString(string),reLeft2016,"")},trimLeft2018:$trimLeft2018}},{"cached-constructors-x":2,"require-coercible-to-string-x":7,"white-space-x":12}],11:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}],12:[function(_dereq_,module,exports){/**
|
||||
* @file List of ECMAScript white space characters.
|
||||
* @version 3.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module white-space-x
|
||||
*/
|
||||
"use strict";for(var list=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\x0B"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\xa0"},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u1680"},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:"\u180e"},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2000"},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2001"},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2002"},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2003"},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2004"},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2005"},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2006"},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2007"},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2008"},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2009"},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u200a"},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u202f"},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u205f"},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u3000"},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],stringES2016="",stringES2018="",length=list.length,i=0;i<length;i+=1)list[i].es2016&&(stringES2016+=list[i].string),list[i].es2018&&(stringES2018+=list[i].string);module.exports={list:list,string:stringES2018,string5:stringES2016,string2015:stringES2016,string2016:stringES2016,string2017:stringES2018,string2018:stringES2018}},{}]},{},[1])(1)});
|
||||
1
build/node_modules/parse-int-x/lib/parse-int-x.min.js.map
generated
vendored
Normal file
1
build/node_modules/parse-int-x/lib/parse-int-x.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
114
build/node_modules/parse-int-x/package.json
generated
vendored
Normal file
114
build/node_modules/parse-int-x/package.json
generated
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"_from": "parse-int-x@^2.0.0",
|
||||
"_id": "parse-int-x@2.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-NIMm52gmd1+0qxJK8lV3OZ4zzWpRH1xcz9xCHXl+DNzddwUdS4NEtd7BmTeK7iCIXoaK5e6BoDMHgieH2eNIhg==",
|
||||
"_location": "/parse-int-x",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "parse-int-x@^2.0.0",
|
||||
"name": "parse-int-x",
|
||||
"escapedName": "parse-int-x",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/to-number-x"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/parse-int-x/-/parse-int-x-2.0.0.tgz",
|
||||
"_shasum": "9f979d4115930df2f4706a41810b9c712405552f",
|
||||
"_spec": "parse-int-x@^2.0.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build/node_modules/to-number-x",
|
||||
"author": {
|
||||
"name": "Graham Fairweather",
|
||||
"email": "xotic750@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Xotic750/parse-int-x/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"copyright": "Copyright (c) 2017",
|
||||
"dependencies": {
|
||||
"cached-constructors-x": "^1.0.0",
|
||||
"nan-x": "^1.0.0",
|
||||
"to-string-x": "^1.4.2",
|
||||
"trim-left-x": "^3.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Parses a string argument and returns an integer of the specified radix.",
|
||||
"devDependencies": {
|
||||
"@xotic750/eslint-config-standard-x": "^2.2.1",
|
||||
"browserify": "^14.4.0",
|
||||
"browserify-derequire": "^0.9.4",
|
||||
"cross-env": "^5.0.1",
|
||||
"es5-shim": "^4.5.9",
|
||||
"es6-shim": "^0.35.3",
|
||||
"es7-shim": "^6.0.0",
|
||||
"eslint": "^4.2.0",
|
||||
"eslint-plugin-compat": "^1.0.4",
|
||||
"eslint-plugin-css-modules": "^2.7.2",
|
||||
"eslint-plugin-eslint-comments": "^1.0.2",
|
||||
"eslint-plugin-jsdoc": "^3.1.1",
|
||||
"eslint-plugin-json": "^1.2.0",
|
||||
"eslint-plugin-no-use-extend-native": "^0.3.12",
|
||||
"husky": "^0.13.4",
|
||||
"jasmine-node": "^1.14.5",
|
||||
"jsdoc-to-markdown": "^3.0.0",
|
||||
"json3": "^3.3.2",
|
||||
"make-jasmine-spec-runner-html": "^1.3.0",
|
||||
"ncp": "^2.0.0",
|
||||
"nodemon": "^1.11.0",
|
||||
"nsp": "^2.6.3",
|
||||
"parallelshell": "^3.0.1",
|
||||
"replace-x": "^1.5.0",
|
||||
"rimraf": "^2.6.1",
|
||||
"serve": "^6.0.2",
|
||||
"uglify-js": "^3.0.24"
|
||||
},
|
||||
"engines": {
|
||||
"node": "*"
|
||||
},
|
||||
"homepage": "https://github.com/Xotic750/parse-int-x",
|
||||
"keywords": [
|
||||
"parseInt",
|
||||
"global",
|
||||
"javascript",
|
||||
"nodejs",
|
||||
"browser"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "parse-int-x",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Xotic750/parse-int-x.git"
|
||||
},
|
||||
"scripts": {
|
||||
"browserify": "browserify -p browserify-derequire -e index.js -o lib/parse-int-x.js -u 'crypto' -s returnExports",
|
||||
"build": "npm run clean && npm run lint && npm run browserify && npm run uglify && npm run docs && npm test && npm run security",
|
||||
"build:description": "replace-x \" @file .*\" \" @file $(node -p -e \"require('./package.json').description\")\" index.js",
|
||||
"build:jasmine": "npm run clean:jasmine && make-jasmine-spec-runner-html",
|
||||
"build:name": "replace-x \" @module .*\" \" @module $(node -p -e \"require('./package.json').name\")\" index.js",
|
||||
"build:replace": "npm run build:setver && npm run build:name && npm run build:description",
|
||||
"build:setver": "replace-x \" @version .*\" \" @version $(node -p -e \"require('./package.json').version\")\" index.js",
|
||||
"clean": "rimraf README.md lib/*",
|
||||
"clean:all": "npm run clean:jasmine && npm run clean",
|
||||
"clean:jasmine": "rimraf tests/index.html tests/run.js",
|
||||
"docs": "npm run docs:badges && jsdoc2md --name-format --example-lang js index.js >> README.md",
|
||||
"docs:badges": "ncp badges.html README.md && npm run docs:name",
|
||||
"docs:name": "replace-x \"@{PACKAGE-NAME}\" \"$(node -p -e \"require('./package.json').name\")\" README.md",
|
||||
"lint": "eslint *.js tests/spec/*.js",
|
||||
"lint-fix": "npm run lint -- --fix",
|
||||
"precommit": "npm run production",
|
||||
"prepush": "npm run production",
|
||||
"production": "npm run clean:all && npm run build:jasmine && npm run build:replace && npm run build",
|
||||
"security": "nsp check",
|
||||
"start": "parallelshell \"serve\" \"nodemon --watch index.js --exec 'npm run build'\"",
|
||||
"test": "jasmine-node --matchall tests/spec/",
|
||||
"uglify": "uglifyjs lib/parse-int-x.js -o lib/parse-int-x.min.js --config-file .uglifyjsrc.json"
|
||||
},
|
||||
"version": "2.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user