Skip to content

Commit 26d6bb6

Browse files
committed
Changed project name to wcwidth.js and ready to release v1.0.0
1 parent c273850 commit 26d6bb6

File tree

7 files changed

+34
-33
lines changed

7 files changed

+34
-33
lines changed

INSTALL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
How to build and install wcwidth
2-
================================
1+
How to build and install wcwidth.js
2+
===================================
33

44
This package does not provide an automated way to build or install the library
5-
except using [`npm`](http://npmjs.org/package/wcwidth.js) because `wcwidth` is
6-
intended to runs on top of [`node.js`](http://nodejs.org). If you have
5+
except using [`npm`](http://npmjs.org/package/wcwidth.js) because `wcwidth.js`
6+
is intended to runs on top of [`node.js`](http://nodejs.org). If you have
77
`node.js` in your system,
88

99
npm install wcwidth.js
1010

11-
brings the latest version of `wcwidth` and installs it with its all depending
12-
packages.
11+
brings the latest version of `wcwidth.js` and installs it with its all
12+
depending packages.

LICENSE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
wcwidth: a javascript portng of C's wcwidth()
2-
=============================================
1+
wcwidth.js: a javascript portng of C's wcwidth()
2+
================================================
33

44
Copyright (C) 2012-2014 by Jun Woong and Tim Oxley.
55

6-
This package is a JavaScript porting of `wcwidth()` implementation
6+
This package is a javascript porting of `wcwidth()` implementation
77
[by Markus Kuhn](http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c).
88

99
Permission is hereby granted, free of charge, to any person obtaining a copy of

NEWS

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
What's new in wcwidth?
2-
======================
1+
What's new in wcwidth.js?
2+
=========================
33

4+
2014-11-16 1.0.0 released
45
2014-09-18 Restructued code and added tests by Tim Oxley
5-
2014-04-26 0.0.4 released.
6-
2012-12-13 0.0.3 released.
7-
2012-12-12 Moved the repository to git/github.
8-
2012-10-16 0.0.2 released.
9-
2012-10-16 Using `wcwidth' without invoking it checked.
10-
2012-10-12 First release.
6+
2014-04-26 0.0.4 released
7+
2012-12-13 0.0.3 released
8+
2012-12-12 Moved the repository to git/github
9+
2012-10-16 0.0.2 released
10+
2012-10-16 Using `wcwidth' without invoking it checked
11+
2012-10-12 First release

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
wcwidth: a javascript porting of C's wcwidth()
2-
==============================================
1+
wcwidth.js: a javascript porting of C's wcwidth()
2+
=================================================
33

4-
`wcwidth` is a simple JavaScript porting of `wcwidth()` implemented in C
4+
`wcwidth.js` is a simple javascript porting of `wcwidth()` implemented in C
55
[by Markus Kuhn](http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c).
66

77
[`wcwidth()`](http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html)
@@ -13,8 +13,8 @@ devices like terminals. Markus's implementation assumes wide characters to be
1313
encoded in [ISO 10646](http://en.wikipedia.org/wiki/Universal_Character_Set),
1414
which is _almost_ true for JavaScript; _almost_ because JavaScript uses
1515
[UCS-2](http://en.wikipedia.org/wiki/UTF-16) and has problems with surrogate
16-
pairs. `wcwidth` converts surrogate pairs to Unicode code points to handle them
17-
correctly.
16+
pairs. `wcwidth.js` converts surrogate pairs to Unicode code points to handle
17+
them correctly.
1818

1919
Following the original implementation, this library defines the column width of
2020
an ISO 10646 character as follows:
@@ -45,12 +45,12 @@ A surrogate high or low value which constitutes no pair is considered to have a
4545
column width of 1 according to the behavior of widespread terminals.
4646

4747
See the
48-
[documentation](https://github.com/mycoboco/wcwidth/blob/master/doc/index.md)
48+
[documentation](https://github.com/mycoboco/wcwidth.js/blob/master/doc/index.md)
4949
from the C implementation for details.
5050

51-
`wcwidth` is simple to use:
51+
`wcwidth.js` is simple to use:
5252

53-
var wcwidth = require('wcwidth')
53+
var wcwidth = require('wcwidth.js')
5454

5555
wcwidth('한글') // 4
5656
wcwidth('\0') // 0; NUL
@@ -81,8 +81,8 @@ containing an instance of `NUL` or control characters:
8181

8282
This is useful when detecting if a string has non-printable characters.
8383

84-
Due to the risk of monkey-patching, `wcwidth` no longer provides the `String`
85-
getter. Even if discouraged, you can still monkey-patch by yourself as follows:
84+
Due to the risk of monkey-patching, the `String` getter is no longer provided.
85+
Even if discouraged, you can still monkey-patch by yourself as follows:
8686

8787
String.prototype.__defineGetter__('wcwidth', function () {
8888
return wcwidth(this);

doc/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
wcwidth: a javascript porting of C's wcwidth()
2-
==============================================
1+
wcwidth.js: a javascript porting of C's wcwidth()
2+
=================================================
33

44
The following explanation comes from the
55
[original C implementation](http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c) with

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* JavaScript porting of Markus Kuhn's wcwidth()
2+
* wcwidth.js: a javascript porting of Markus Kuhn's wcwidth()
33
*/
44

55
"use strict"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"url": "http://campjs.com/"
1515
}
1616
],
17-
"homepage": "http://code.woong.org/wcwidth",
17+
"homepage": "http://code.woong.org/wcwidth.js",
1818
"repository": {
1919
"type": "git",
20-
"url": "https://github.com/mycoboco/wcwidth.git"
20+
"url": "https://github.com/mycoboco/wcwidth.js.git"
2121
},
2222
"bugs": {
23-
"url": "https://github.com/mycoboco/wcwidth/issues",
23+
"url": "https://github.com/mycoboco/wcwidth.js/issues",
2424
"email": "[email protected]"
2525
},
2626
"main": "index.js",

0 commit comments

Comments
 (0)