white-space-x

WebJar for white-space-x

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

white-space-x
Последняя версия

Последняя версия

3.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

white-space-x
WebJar for white-space-x
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/Xotic750/white-space-x

Скачать white-space-x

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/white-space-x/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>white-space-x</artifactId>
    <version>3.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/white-space-x/
implementation 'org.webjars.npm:white-space-x:3.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/white-space-x/
implementation ("org.webjars.npm:white-space-x:3.0.1")
'org.webjars.npm:white-space-x:jar:3.0.1'
<dependency org="org.webjars.npm" name="white-space-x" rev="3.0.1">
  <artifact name="white-space-x" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='white-space-x', version='3.0.1')
)
libraryDependencies += "org.webjars.npm" % "white-space-x" % "3.0.1"
[org.webjars.npm/white-space-x "3.0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

white-space-x

module.exports : string

List of ECMAScript white space characters.

Kind: Exported member Example

import whiteSpace from 'white-space-x';
whiteSpaces.list.foreach(function(item) {
  console.log(item.description, item.code, item.string);
});

const 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',
];
const ws = characters.join('');
const re1 = new RegExp('^[' + whiteSpace + ']+$)');
console.log(re1.test(ws)); // true

white-space-x.list : Array.<CharRecord>

An array of the whitespace char codes, string, descriptions and language presence in the specifications.

Kind: static property of white-space-x

white-space-x.string2016 : string

A string of the ES5 to ES2016 whitespace characters.

Kind: static property of white-space-x Example

import {string2016 as whiteSpace2016} from 'white-space-x';
const 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',
];
const ws = characters.join('');
const re1 = new RegExp('^[' + whiteSpace2016 + ']+$)');
console.log(re1.test(ws)); // true

white-space-x.string2017 : string

A string of the ES2017 to ES2018 whitespace characters.

Kind: static property of white-space-x

white-space-x~CharRecord : Object

A record of a white space character.

Kind: inner typedef of white-space-x
Properties

Name Type Description
code number The character code.
description string A description of the character.
es5 boolean Whether the spec lists this as a white space.
es2015 boolean Whether the spec lists this as a white space.
es2016 boolean Whether the spec lists this as a white space.
es2017 boolean Whether the spec lists this as a white space.
es2018 boolean Whether the spec lists this as a white space.
string string The character string.

Версии библиотеки

Версия
3.0.1
3.0.0