emailjs-utf7
Advanced tools
Comparing version 2.0.3 to 3.0.0
{ | ||
"name": "emailjs-utf7", | ||
"main": "src/utf7.js", | ||
"version": "2.0.3", | ||
"main": "src/emailjs-utf7.js", | ||
"version": "3.0.0", | ||
"homepage": "https://github.com/emailjs/emailjs-utf7", | ||
@@ -6,0 +6,0 @@ "author": "Konstantin Käfer", |
@@ -5,15 +5,9 @@ # UTF-7 | ||
### [Bower](http://bower.io/): | ||
## Usage | ||
bower install git@github.com:whiteout-io/utf7.git#<TAG NAME> | ||
[bower | npm] install emailjs-utf7 | ||
### [npm](https://www.npmjs.org/): | ||
npm install https://github.com/whiteout-io/utf7/tarball/<TAG NAME> | ||
## Usage | ||
### node.js | ||
var utf7 = require('utf7'); | ||
var utf7 = require('emailjs-utf7'); | ||
@@ -20,0 +14,0 @@ ### Browser |
@@ -5,5 +5,5 @@ (function(root, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['chai', 'utf7'], factory); | ||
define(['chai', 'emailjs-utf7'], factory); | ||
} else if (typeof exports === 'object') { | ||
factory(require('chai'), require('../src/utf7')); | ||
factory(require('chai'), require('../src/emailjs-utf7')); | ||
} | ||
@@ -134,3 +134,3 @@ }(this, function(chai, utf7) { | ||
}); | ||
it('should decode +- to the plus sign', function() { | ||
@@ -140,3 +140,3 @@ expect(utf7.decode('Hot +- Spicy +- Fruity')).to.equal('Hot + Spicy + Fruity'); | ||
}); | ||
it('should decode slashes in the beginning', function() { | ||
@@ -146,3 +146,3 @@ expect(utf7.decode('+///typh2VDIf7Q-')).to.equal('\uffff\uedca\u9876\u5432\u1fed'); | ||
}); | ||
it('should decode non-ASCII chars', function() { | ||
@@ -157,2 +157,2 @@ expect(utf7.decode('+AOQ-+-+AOQ-+-+AOQ-')).to.equal('\u00E4+\u00E4+\u00E4'); | ||
}); | ||
})); | ||
})); |
Sorry, the diff of this file is not supported yet
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
394
24202
62