Comparing version 0.1.0 to 0.1.1
@@ -1,2 +0,2 @@ | ||
/*! http://mths.be/ibm866 v0.1.0 by @mathias | MIT license */ | ||
/*! http://mths.be/ibm866 v0.1.1 by @mathias | MIT license */ | ||
;(function(root) { | ||
@@ -53,2 +53,3 @@ | ||
var byteValue; | ||
var pointer; | ||
var result = ''; | ||
@@ -65,3 +66,3 @@ while (++index < length) { | ||
// `single-byte`.” | ||
var pointer = byteValue - 0x80; | ||
pointer = byteValue - 0x80; | ||
if (hasOwnProperty.call(INDEX_BY_POINTER, pointer)) { | ||
@@ -119,3 +120,9 @@ // “Return a code point whose value is `code point`.” | ||
'decode': decode, | ||
'version': '0.1.0' | ||
'labels': [ | ||
'866', | ||
'cp866', | ||
'csibm866', | ||
'ibm866' | ||
], | ||
'version': '0.1.1' | ||
}; | ||
@@ -122,0 +129,0 @@ |
{ | ||
"name": "ibm866", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A robust ibm866 encoder/decoder written in JavaScript.", | ||
@@ -38,2 +38,8 @@ "homepage": "http://mths.be/ibm866", | ||
], | ||
"directories": { | ||
"test": "tests" | ||
}, | ||
"scripts": { | ||
"test": "node tests/tests.js" | ||
}, | ||
"devDependencies": { | ||
@@ -40,0 +46,0 @@ "grunt": "~0.4.4", |
# ibm866 [![Build status](https://travis-ci.org/mathiasbynens/ibm866.svg?branch=master)](https://travis-ci.org/mathiasbynens/ibm866) [![Dependency status](https://gemnasium.com/mathiasbynens/ibm866.svg)](https://gemnasium.com/mathiasbynens/ibm866) | ||
_ibm866_ is robust JavaScript implementation of [the ibm866 character encoding as defined by the Encoding Standard](http://encoding.spec.whatwg.org/#ibm866). | ||
_ibm866_ is a robust JavaScript implementation of [the ibm866 character encoding as defined by the Encoding Standard](http://encoding.spec.whatwg.org/#ibm866). | ||
This encoding is known under the following names: 866, cp866, csibm866, ibm866, and ibm866. | ||
This encoding is known under the following names: 866, cp866, csibm866, and ibm866. | ||
@@ -67,2 +67,6 @@ ## Installation | ||
### `ibm866.labels` | ||
An array of strings, each representing a [label](http://encoding.spec.whatwg.org/#label) for this encoding. | ||
### `ibm866.encode(input, options)` | ||
@@ -69,0 +73,0 @@ |
13196
149
128