pangunode

Spacing texts in Node.js!

pangu.node

Spacing texts in Node.js!

DEMO in browser

The algorithm is from paranoid-auto-spacing

Install the module with: npm install --save pangunode

var pangunode = require('pangunode');
 
pangunode('應該nothing happen');
// => 應該 nothing happen 
 
pangunode('u請問Jackie的鼻子有幾個S');
// => u 請問 Jackie 的鼻子有幾個 S 

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