0.0.4 • Published 8 years ago

aspace v0.0.4

Weekly downloads
87
License
MIT
Repository
github
Last release
8 years ago

ASpace

npm npm npm

Add space between English and CJK(Chinese, Japanese and Korean).

强迫症的福音: CJK(中日韩统一表意文字) 与 英文字母之间自动加入空格

Install

$ npm install aspace

Usage

Parameter:

aSpace('测试test测试');  // string
aSpace(document.body);  // element
aSpace(document.getElementsByClassName('example'));  // element array

Ignore some node: add className 'no-space'

<p class="no-space">设置no-space: test测试test测试</p>

Used in input field:

<input type="text" onchange="this.value = aSpace(this.value);">

Development

$ npm install
$ npm install -g gulp
$ gulp

LICENSE

MIT © DIYgod

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago