Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

white-space-x

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

white-space-x

List of ECMAScript5 white space characters.

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.4K
decreased by-52.62%
Maintainers
1
Weekly downloads
 
Created
Source

Travis status Dependency status devDependency status npm version

white-space-x

List of ECMAScript5 white space characters.

Version: 2.0.1
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750

white-space-x~list : Array.<Object>

An array of the ES5 whitespace char codes, string, and their descriptions.

Kind: inner property of white-space-x
Example

var whiteSpace = require('white-space-x');
whiteSpaces.list.foreach(function (item) {
  console.log(lib.description, item.code, item.string);
});

white-space-x~string : string

A string of the ES5 whitespace characters.

Kind: inner property of white-space-x
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.string + ']+$)');
re1.test(ws); // true

Keywords

FAQs

Package last updated on 10 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc