windows-1250
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "windows-1250", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A robust windows-1250 encoder/decoder written in JavaScript.", | ||
@@ -37,2 +37,8 @@ "homepage": "http://mths.be/windows-1250", | ||
], | ||
"directories": { | ||
"test": "tests" | ||
}, | ||
"scripts": { | ||
"test": "node tests/tests.js" | ||
}, | ||
"devDependencies": { | ||
@@ -39,0 +45,0 @@ "grunt": "~0.4.4", |
# windows-1250 [![Build status](https://travis-ci.org/mathiasbynens/windows-1250.svg?branch=master)](https://travis-ci.org/mathiasbynens/windows-1250) [![Dependency status](https://gemnasium.com/mathiasbynens/windows-1250.svg)](https://gemnasium.com/mathiasbynens/windows-1250) | ||
_windows-1250_ is robust JavaScript implementation of [the windows-1250 character encoding as defined by the Encoding Standard](http://encoding.spec.whatwg.org/#windows-1250). | ||
_windows-1250_ is a robust JavaScript implementation of [the windows-1250 character encoding as defined by the Encoding Standard](http://encoding.spec.whatwg.org/#windows-1250). | ||
This encoding is known under the following names: cp1250, windows-1250, x-cp1250, and x-cp1250. | ||
This encoding is known under the following names: cp1250, windows-1250, and x-cp1250. | ||
@@ -67,2 +67,6 @@ ## Installation | ||
### `windows1250.labels` | ||
An array of strings, each representing a [label](http://encoding.spec.whatwg.org/#label) for this encoding. | ||
### `windows1250.encode(input, options)` | ||
@@ -69,0 +73,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! http://mths.be/windows-1250 v0.1.0 by @mathias | MIT license */ | ||
/*! http://mths.be/windows-1250 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,8 @@ // “Return a code point whose value is `code point`.” | ||
'decode': decode, | ||
'version': '0.1.0' | ||
'labels': [ | ||
'cp1250', | ||
'windows-1250', | ||
'x-cp1250' | ||
], | ||
'version': '0.1.1' | ||
}; | ||
@@ -122,0 +128,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13267
146
128