This repository has been archived by the owner. It is now read-only.
[DEPRECATION] Spacing texts in Node.js → see pangu.js
Clone or download
Huei Tan
Huei Tan Update README.md
Latest commit aa1b629 Jan 12, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore init May 15, 2014
.jshintrc move test tool to ava Dec 31, 2015
.travis.yml Do I really need Grunt? Dec 31, 2015
README.md Update README.md Jan 12, 2016
browser.js Fix browserify Jul 3, 2014
index.html Output should using <pre> Dec 31, 2015
package.json Do I really need Grunt? Dec 31, 2015
pangunode.js Fix browserify Jul 3, 2014
test-pangunode.js move test tool to ava Dec 31, 2015

README.md

☀️ pangu.js is now supporting Node.js ☀️

I am old 😭

Good Bye pangu.node 😴


pangu.node Build Status

Spacing texts in Node.js!

DEMO in browser

The algorithm is from paranoid-auto-spacing

Getting Started

Install the module with: npm install --save pangunode

var pangunode = require('pangunode'); // ES2015: import pangunode from 'pangunode';

pangunode('應該nothing happen');
// => 應該 nothing happen

pangunode('u請問Jackie的鼻子有幾個S');
// => u 請問 Jackie 的鼻子有幾個 S

License

Copyright (c) 2014 Huei Tan. Licensed under the MIT license.