mycoboco / wcwidth.js

a javascript porting of C's wcwidth()
http://code.woong.org/wcwidth.js
Other
12 stars 2 forks source link

add option to install a getter for String #10

Closed mycoboco closed 4 weeks ago

mycoboco commented 9 years ago

Removing monkey-patch from 1.0.0, users are required to add a getter into String by themselves if they want to use it. Several requests to bring back the getter wcwidth after release of 1.0.0 need to be satisfied.

mycoboco commented 4 weeks ago

Added an example using Object.defineProperty