{"name":"white-space-x","version":"1.0.2","description":"whitespace module.","homepage":"https://github.com/Xotic750/white-space-x","author":{"name":"Graham Fairweather","email":"xotic750@gmail.com"},"copyright":"Copyright (c) 2015","keywords":["ES5","whitespaces","RegExp","module","javascript","nodejs","browser"],"main":"index.js","engines":{"node":"*"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Xotic750/white-space-x.git"},"bugs":{"url":"https://github.com/Xotic750/white-space-x/issues"},"dependencies":{"define-property-x":"^1.0.6","regexp.escape":"^1.0.2"},"devDependencies":{"es5-shim":"^4.4.1","es6-shim":"^0.34.1","json3":"^3.3.2","jscs":"^2.8.0","uglify-js":"^2.6.1","browserify":"^13.0.0","browserify-derequire":"^0.9.4","jasmine-node":"^1.14.5","jsdoc-to-markdown":"^1.3.3","nsp":"^2.2.0"},"scripts":{"test":"jasmine-node --matchall tests/spec/","security":"nsp check","style":"jscs index.js","docs":"jsdoc2md --name-format --example-lang js index.js > README.md","build":"browserify -p browserify-derequire -e index.js -o lib/white-space-x.js -u 'crypto' -s returnExports","build-uglify":"uglifyjs lib/white-space-x.js -o lib/white-space-x.min.js --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map lib/white-space-x.map"},"gitHead":"4cd1d1d0a189453a61936a7337daca5b21c6ecb3","_id":"white-space-x@1.0.2","_shasum":"5d75ad62239b28360858023a50ba60bbdc2d05ff","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"dist":{"shasum":"5d75ad62239b28360858023a50ba60bbdc2d05ff","tarball":"http://registry-npm.ywwl.com/white-space-x/download/white-space-x-1.0.2.tgz","integrity":"sha512-0HGNQW3dvNWzvxAzZtLTHlxHO6JNpvrq2sVapnEZj/k9YbIQCx93fC1Cp6dJRR0UNjqxrYH3AdV7PrbRyUuoOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZbRecowTxCseseooKxsCN/AMZ8NIFNWuQd4SdLLVQxAiEArULPTfGjUL8SUDFV27zQFuPL5KtlU9fomxg1N1ZCJ94="}],"size":26370,"noattachment":false,"key":"/white-space-x/-/white-space-x-1.0.2.tgz"},"directories":{},"readme":"<a\n  href=\"https://travis-ci.org/Xotic750/white-space-x\"\n  title=\"Travis status\">\n<img\n  src=\"https://travis-ci.org/Xotic750/white-space-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\">\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/white-space-x\"\n  title=\"Dependency status\">\n<img src=\"https://david-dm.org/Xotic750/white-space-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/white-space-x?type=dev\"\n  title=\"devDependency status\">\n<img src=\"https://david-dm.org/Xotic750/white-space-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://badge.fury.io/js/white-space-x\"\n  title=\"npm version\">\n<img src=\"https://badge.fury.io/js/white-space-x.svg\"\n  alt=\"npm version\" height=\"18\">\n</a>\n<a\n  href=\"https://www.jsdelivr.com/package/npm/white-space-x\"\n  title=\"jsDelivr hits\">\n<img src=\"https://data.jsdelivr.com/v1/package/npm/white-space-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\">\n</a>\n<a\n  href=\"https://bettercodehub.com/results/Xotic750/white-space-x\"\n  title=\"bettercodehub score\">\n<img src=\"https://bettercodehub.com/edge/badge/Xotic750/white-space-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\">\n</a>\n<a\n  href=\"https://coveralls.io/github/Xotic750/white-space-x?branch=master\"\n  title=\"Coverage Status\">\n<img src=\"https://coveralls.io/repos/github/Xotic750/white-space-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\">\n</a>\n\n<a name=\"module_white-space-x\"></a>\n\n## white-space-x\n\n### `module.exports` : <code>string</code> ⏏\n\nList of ECMAScript white space characters.\n\n**Kind**: Exported member\n**Example**\n\n```js\nimport whiteSpace from 'white-space-x';\nwhiteSpaces.list.foreach(function(item) {\n  console.log(item.description, item.code, item.string);\n});\n\nconst characters = [\n  '\\u0009',\n  '\\u000a',\n  '\\u000b',\n  '\\u000c',\n  '\\u000d',\n  '\\u0020',\n  '\\u00a0',\n  '\\u1680',\n  '\\u2000',\n  '\\u2001',\n  '\\u2002',\n  '\\u2003',\n  '\\u2004',\n  '\\u2005',\n  '\\u2006',\n  '\\u2007',\n  '\\u2008',\n  '\\u2009',\n  '\\u200a',\n  '\\u2028',\n  '\\u2029',\n  '\\u202f',\n  '\\u205f',\n  '\\u3000',\n  '\\ufeff',\n];\nconst ws = characters.join('');\nconst re1 = new RegExp('^[' + whiteSpace + ']+$)');\nconsole.log(re1.test(ws)); // true\n```\n\n- [white-space-x](#module_white-space-x)\n  - _static_\n    - [`.list`](#module_white-space-x.list) : <code>Array.&lt;CharRecord&gt;</code>\n    - [`.string2016`](#module_white-space-x.string2016) : <code>string</code>\n  - _inner_\n    - [`~CharRecord`](#module_white-space-x..CharRecord) : <code>Object</code>\n\n<a name=\"module_white-space-x.list\"></a>\n\n### `white-space-x.list` : <code>Array.&lt;CharRecord&gt;</code>\n\nAn array of the whitespace char codes, string, descriptions and language\npresence in the specifications.\n\n**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x)\n<a name=\"module_white-space-x.string2016\"></a>\n\n### `white-space-x.string2016` : <code>string</code>\n\nA string of the ES5 to ES2016 whitespace characters.\n\n**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x)\n**Example**\n\n```js\nimport {string2016 as whiteSpace2016} from 'white-space-x';\nconst characters = [\n  '\\u0009',\n  '\\u000a',\n  '\\u000b',\n  '\\u000c',\n  '\\u000d',\n  '\\u0020',\n  '\\u00a0',\n  '\\u1680',\n  '\\u180e',\n  '\\u2000',\n  '\\u2001',\n  '\\u2002',\n  '\\u2003',\n  '\\u2004',\n  '\\u2005',\n  '\\u2006',\n  '\\u2007',\n  '\\u2008',\n  '\\u2009',\n  '\\u200a',\n  '\\u2028',\n  '\\u2029',\n  '\\u202f',\n  '\\u205f',\n  '\\u3000',\n  '\\ufeff',\n];\nconst ws = characters.join('');\nconst re1 = new RegExp('^[' + whiteSpace2016 + ']+$)');\nconsole.log(re1.test(ws)); // true\n```\n\n<a name=\"module_white-space-x.string2017\"></a>\n\n### `white-space-x.string2017` : <code>string</code>\n\nA string of the ES2017 to ES2018 whitespace characters.\n\n**Kind**: static property of [<code>white-space-x</code>](#module_white-space-x)  \n<a name=\"module_white-space-x.string2018\"></a>\n\n<a name=\"module_white-space-x..CharRecord\"></a>\n\n### `white-space-x~CharRecord` : <code>Object</code>\n\nA record of a white space character.\n\n**Kind**: inner typedef of [<code>white-space-x</code>](#module_white-space-x)  \n**Properties**\n\n| Name        | Type                 | Description                                   |\n| ----------- | -------------------- | --------------------------------------------- |\n| code        | <code>number</code>  | The character code.                           |\n| description | <code>string</code>  | A description of the character.               |\n| es5         | <code>boolean</code> | Whether the spec lists this as a white space. |\n| es2015      | <code>boolean</code> | Whether the spec lists this as a white space. |\n| es2016      | <code>boolean</code> | Whether the spec lists this as a white space. |\n| es2017      | <code>boolean</code> | Whether the spec lists this as a white space. |\n| es2018      | <code>boolean</code> | Whether the spec lists this as a white space. |\n| string      | <code>string</code>  | The character string.                         |\n","publish_time":1452591435551,"_cnpm_publish_time":1452591435551,"dist-tags":{"latest":"4.1.1"}}