8000 GitHub - DIYgod/ASpace: :lollipop: Add space between English and CJK(Chinese, Japanese and Korean)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 28, 2019. It is now read-only.

DIYgod/ASpace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0