white-space-x
Advanced tools
Comparing version 4.0.0 to 4.0.1
/*! | ||
{ | ||
"copywrite": "Copyright (c) 2015-present", | ||
"date": "2019-07-10T21:13:08.444Z", | ||
"date": "2019-07-10T22:27:27.494Z", | ||
"describe": "", | ||
"description": "List of ECMAScript white space characters.", | ||
"file": "white-space-x.js", | ||
"hash": "948f0cfc95f9191727c8", | ||
"hash": "45890877b0998db75791", | ||
"license": "MIT", | ||
"version": "4.0.0" | ||
"version": "4.0.1" | ||
} | ||
@@ -135,3 +135,3 @@ */ | ||
}); | ||
exports.string2018 = exports.string2017 = exports.string2016 = exports.string2015 = exports.string5 = exports.string = exports.list = void 0; | ||
exports.string2016 = exports.default = exports.list = void 0; | ||
@@ -446,14 +446,7 @@ /** | ||
var string = stringES2018; | ||
exports.string = string; | ||
var string5 = stringES2016; | ||
exports.string5 = string5; | ||
var string2015 = stringES2016; | ||
exports.string2015 = string2015; | ||
var string2018 = stringES2018; | ||
var _default = string2018; | ||
exports.default = _default; | ||
var string2016 = stringES2016; | ||
exports.string2016 = string2016; | ||
var string2017 = stringES2018; | ||
exports.string2017 = string2017; | ||
var string2018 = stringES2018; | ||
exports.string2018 = string2018; | ||
@@ -460,0 +453,0 @@ /***/ }) |
/*! | ||
{ | ||
"copywrite": "Copyright (c) 2015-present", | ||
"date": "2019-07-10T21:13:08.444Z", | ||
"date": "2019-07-10T22:27:27.494Z", | ||
"describe": "", | ||
"description": "List of ECMAScript white space characters.", | ||
"file": "white-space-x.min.js", | ||
"hash": "bb70cbd8d55a29c60f89", | ||
"hash": "fe69807cce4b9e3da193", | ||
"license": "MIT", | ||
"version": "4.0.0" | ||
"version": "4.0.1" | ||
} | ||
*/ | ||
!function(e,s){"object"==typeof exports&&"object"==typeof module?module.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof exports?exports.whiteSpaceX=s():e.whiteSpaceX=s()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(e){var s={};function r(t){if(s[t])return s[t].exports;var n=s[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=s,r.d=function(e,s,t){r.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,s){if(1&s&&(e=r(e)),8&s)return e;if(4&s&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&s&&"string"!=typeof e)for(var n in e)r.d(t,n,function(s){return e[s]}.bind(null,n));return t},r.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(s,"a",s),s},r.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},r.p="",r(r.s=0)}([function(e,s,r){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.string2018=s.string2017=s.string2016=s.string2015=s.string5=s.string=s.list=void 0;var t=[{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:"\v"},{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:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:""},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{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:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}];s.list=t;for(var n="",i="",o=t.length,c=0;c<o;c+=1)t[c].es2016&&(n+=t[c].string),t[c].es2018&&(i+=t[c].string);var d=i;s.string=d;var p=n;s.string5=p;var a=n;s.string2015=a;var u=n;s.string2016=u;var g=i;s.string2017=g;var f=i;s.string2018=f}])}); | ||
!function(e,s){"object"==typeof exports&&"object"==typeof module?module.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof exports?exports.whiteSpaceX=s():e.whiteSpaceX=s()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(e){var s={};function r(t){if(s[t])return s[t].exports;var n=s[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=s,r.d=function(e,s,t){r.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,s){if(1&s&&(e=r(e)),8&s)return e;if(4&s&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&s&&"string"!=typeof e)for(var n in e)r.d(t,n,function(s){return e[s]}.bind(null,n));return t},r.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(s,"a",s),s},r.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},r.p="",r(r.s=0)}([function(e,s,r){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.string2016=s.default=s.list=void 0;var t=[{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:"\v"},{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:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:""},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{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:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}];s.list=t;for(var n="",i="",o=t.length,c=0;c<o;c+=1)t[c].es2016&&(n+=t[c].string),t[c].es2018&&(i+=t[c].string);var d=i;s.default=d;var p=n;s.string2016=p}])}); | ||
//# sourceMappingURL=white-space-x.min.js.map |
{ | ||
"name": "white-space-x", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "List of ECMAScript white space characters.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Xotic750/white-space-x", |
101
README.md
@@ -25,65 +25,15 @@ <a href="https://travis-ci.org/Xotic750/white-space-x" | ||
### `module.exports` : <code>string</code> ⏏ | ||
List of ECMAScript white space characters. | ||
- [white-space-x](#module_white-space-x) | ||
- _static_ | ||
- [`.list`](#module_white-space-x.list) : <code>Array.<CharRecord></code> | ||
- [`.string`](#module_white-space-x.string) : <code>string</code> | ||
- [`.string5`](#module_white-space-x.string5) : <code>string</code> | ||
- [`.string2015`](#module_white-space-x.string2015) : <code>string</code> | ||
- [`.string2016`](#module_white-space-x.string2016) : <code>string</code> | ||
- [`.string2017`](#module_white-space-x.string2017) : <code>string</code> | ||
- [`.string2018`](#module_white-space-x.string2018) : <code>string</code> | ||
- _inner_ | ||
- [`~CharRecord`](#module_white-space-x..CharRecord) : <code>Object</code> | ||
<a name="module_white-space-x.list"></a> | ||
### `white-space-x.list` : <code>Array.<CharRecord></code> | ||
An array of the whitespace char codes, string, descriptions and language | ||
presence in the specifications. | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
**Kind**: Exported member | ||
**Example** | ||
```js | ||
import * as whiteSpace from 'white-space-x'; | ||
import whiteSpace from 'white-space-x'; | ||
whiteSpaces.list.foreach(function(item) { | ||
console.log(lib.description, item.code, item.string); | ||
console.log(item.description, item.code, item.string); | ||
}); | ||
``` | ||
<a name="module_white-space-x.string"></a> | ||
### `white-space-x.string` : <code>string</code> | ||
A string of the ES2017 to ES2018 whitespace characters. | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
<a name="module_white-space-x.string5"></a> | ||
### `white-space-x.string5` : <code>string</code> | ||
A string of the ES5 to ES2016 whitespace characters. | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
<a name="module_white-space-x.string2015"></a> | ||
### `white-space-x.string2015` : <code>string</code> | ||
A string of the ES5 to ES2016 whitespace characters. | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
<a name="module_white-space-x.string2016"></a> | ||
### `white-space-x.string2016` : <code>string</code> | ||
A string of the ES5 to ES2016 whitespace characters. | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
**Example** | ||
```js | ||
import * as whiteSpace from 'white-space-x'; | ||
const characters = [ | ||
@@ -98,3 +48,2 @@ '\u0009', | ||
'\u1680', | ||
'\u180e', | ||
'\u2000', | ||
@@ -119,24 +68,32 @@ '\u2001', | ||
const ws = characters.join(''); | ||
const re1 = new RegExp('^[' + whiteSpace.string2016 + ']+$)'); | ||
const re1 = new RegExp('^[' + whiteSpace + ']+$)'); | ||
console.log(re1.test(ws)); // true | ||
``` | ||
<a name="module_white-space-x.string2017"></a> | ||
- [white-space-x](#module_white-space-x) | ||
- _static_ | ||
- [`.list`](#module_white-space-x.list) : <code>Array.<CharRecord></code> | ||
- [`.string2016`](#module_white-space-x.string2016) : <code>string</code> | ||
- _inner_ | ||
- [`~CharRecord`](#module_white-space-x..CharRecord) : <code>Object</code> | ||
### `white-space-x.string2017` : <code>string</code> | ||
<a name="module_white-space-x.list"></a> | ||
A string of the ES2017 to ES2018 whitespace characters. | ||
### `white-space-x.list` : <code>Array.<CharRecord></code> | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
<a name="module_white-space-x.string2018"></a> | ||
An array of the whitespace char codes, string, descriptions and language | ||
presence in the specifications. | ||
### `white-space-x.string2018` : <code>string</code> | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
<a name="module_white-space-x.string2016"></a> | ||
A string of the ES2017 to ES2018 whitespace characters. | ||
### `white-space-x.string2016` : <code>string</code> | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
A string of the ES5 to ES2016 whitespace characters. | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
**Example** | ||
```js | ||
import * as whiteSpace from 'white-space-x'; | ||
import {string2016 as whiteSpace2016} from 'white-space-x'; | ||
const characters = [ | ||
@@ -151,2 +108,3 @@ '\u0009', | ||
'\u1680', | ||
'\u180e', | ||
'\u2000', | ||
@@ -171,6 +129,15 @@ '\u2001', | ||
const ws = characters.join(''); | ||
const re1 = new RegExp('^[' + whiteSpace.string2018 + ']+$)'); | ||
const re1 = new RegExp('^[' + whiteSpace2016 + ']+$)'); | ||
console.log(re1.test(ws)); // true | ||
``` | ||
<a name="module_white-space-x.string2017"></a> | ||
### `white-space-x.string2017` : <code>string</code> | ||
A string of the ES2017 to ES2018 whitespace characters. | ||
**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x) | ||
<a name="module_white-space-x.string2018"></a> | ||
<a name="module_white-space-x..CharRecord"></a> | ||
@@ -177,0 +144,0 @@ |
@@ -332,7 +332,5 @@ /** | ||
export const string = stringES2018; | ||
export const string5 = stringES2016; | ||
export const string2015 = stringES2016; | ||
const string2018 = stringES2018; | ||
export default string2018; | ||
export const string2016 = stringES2016; | ||
export const string2017 = stringES2018; | ||
export const string2018 = stringES2018; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
61554
796
157