New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

quoted-printable

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quoted-printable - npm Package Compare versions

Comparing version 0.2.1 to 1.0.0

2

LICENSE-MIT.txt

@@ -1,2 +0,2 @@

Copyright Mathias Bynens <http://mathiasbynens.be/>
Copyright Mathias Bynens <https://mathiasbynens.be/>

@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining

{
"name": "quoted-printable",
"version": "0.2.1",
"version": "1.0.0",
"description": "A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.",
"homepage": "http://mths.be/quoted-printable",
"homepage": "https://mths.be/quoted-printable",
"main": "quoted-printable.js",

@@ -17,11 +17,6 @@ "bin": "bin/quoted-printable",

],
"licenses": [
{
"type": "MIT",
"url": "http://mths.be/mit"
}
],
"license": "MIT",
"author": {
"name": "Mathias Bynens",
"url": "http://mathiasbynens.be/"
"url": "https://mathiasbynens.be/"
},

@@ -32,5 +27,3 @@ "repository": {

},
"bugs": {
"url": "https://github.com/mathiasbynens/quoted-printable/issues"
},
"bugs": "https://github.com/mathiasbynens/quoted-printable/issues",
"files": [

@@ -51,16 +44,17 @@ "LICENSE-MIT.txt",

"dependencies": {
"utf8": "~2.0.0"
"utf8": "^2.0.0"
},
"devDependencies": {
"grunt": "~0.4.4",
"grunt-shell": "~0.7.0",
"grunt-template": "~0.2.3",
"istanbul": "~0.2.7",
"jsesc": "~0.4.3",
"qunit-extras": "~1.1.0",
"coveralls": "^2.11.1",
"grunt": "^0.4.5",
"grunt-shell": "^1.1.1",
"grunt-template": "^0.2.3",
"istanbul": "^0.3.5",
"jsesc": "^0.5.0",
"qunit-extras": "^1.4.0",
"qunitjs": "~1.11.0",
"regenerate": "~0.6.1",
"requirejs": "~2.1.11",
"string.fromcodepoint": "~0.2.0"
"regenerate": "^1.0.1",
"requirejs": "^2.1.15",
"string.fromcodepoint": "^0.2.1"
}
}

@@ -1,2 +0,2 @@

/*! http://mths.be/quoted-printable v0.2.1 by @mathias | MIT license */
/*! https://mths.be/quoted-printable v0.2.1 by @mathias | MIT license */
;(function(root) {

@@ -23,3 +23,3 @@

return input
// http://tools.ietf.org/html/rfc2045#section-6.7, rule 3:
// https://tools.ietf.org/html/rfc2045#section-6.7, rule 3:
// “Therefore, when decoding a `Quoted-Printable` body, any trailing white

@@ -29,11 +29,10 @@ // space on a line must be deleted, as it will necessarily have been added

.replace(/[\t\x20]$/gm, '')
// Remove hard line breaks. Note: this includes `=` followed by a line
// break. Proper `Quoted-Printable`-encoded data only contains CRLF line
// endings, but for compatibility reasons we should support separate CR
// and LF too.
.replace(/=?(?:\r\n?|\n)/g, '')
// Remove hard line breaks preceded by `=`. Proper `Quoted-Printable`-
// encoded data only contains CRLF line endings, but for compatibility
// reasons we support separate CR and LF too.
.replace(/=(?:\r\n?|\n|$)/g, '')
// Decode escape sequences of the form `=XX` where `XX` is any
// combination of two hexidecimal digits. For optimal compatibility,
// lowercase hexadecimal digits are supported as well. See
// http://tools.ietf.org/html/rfc2045#section-6.7, note 1.
// https://tools.ietf.org/html/rfc2045#section-6.7, note 1.
.replace(/=([a-fA-F0-9]{2})/g, function($0, $1) {

@@ -40,0 +39,0 @@ var codePoint = parseInt($1, 16);

@@ -1,8 +0,8 @@

# quoted-printable [![Build status](https://travis-ci.org/mathiasbynens/quoted-printable.svg?branch=master)](https://travis-ci.org/mathiasbynens/quoted-printable) [![Dependency status](https://gemnasium.com/mathiasbynens/quoted-printable.svg)](https://gemnasium.com/mathiasbynens/quoted-printable)
# quoted-printable [![Build status](https://travis-ci.org/mathiasbynens/quoted-printable.svg?branch=master)](https://travis-ci.org/mathiasbynens/quoted-printable) [![Code coverage status](http://img.shields.io/coveralls/mathiasbynens/quoted-printable/master.svg)](https://coveralls.io/r/mathiasbynens/quoted-printable) [![Dependency status](https://gemnasium.com/mathiasbynens/quoted-printable.svg)](https://gemnasium.com/mathiasbynens/quoted-printable)
_quoted-printable_ is a character encoding–agnostic JavaScript implementation of [the `Quoted-Printable` content transfer encoding as defined by RFC 2045](http://tools.ietf.org/html/rfc2045#section-6.7). It can be used to encode plaintext to its `Quoted-Printable` encoding, or the other way around (i.e. decoding). [Here’s an online demo using the UTF-8 character encoding.](http://mothereff.in/quoted-printable)
_quoted-printable_ is a character encoding–agnostic JavaScript implementation of [the `Quoted-Printable` content transfer encoding as defined by RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.7). It can be used to encode plaintext to its `Quoted-Printable` encoding, or the other way around (i.e. decoding). [Here’s an online demo using the UTF-8 character encoding.](https://mothereff.in/quoted-printable)
## Installation
Via [npm](http://npmjs.org/):
Via [npm](https://www.npmjs.org/):

@@ -31,3 +31,3 @@ ```bash

In [Narwhal](http://narwhaljs.org/), [Node.js](http://nodejs.org/), and [RingoJS](http://ringojs.org/):
In [Narwhal](http://narwhaljs.org/), [Node.js](https://nodejs.org/), and [RingoJS](http://ringojs.org/):

@@ -121,3 +121,3 @@ ```js

```bash
$ curl -sL 'http://mths.be/brh' | quoted-printable --encode > quoted-printable.txt
$ curl -sL 'https://mths.be/brh' | quoted-printable --encode > quoted-printable.txt
```

@@ -149,6 +149,6 @@

|---|
| [Mathias Bynens](http://mathiasbynens.be/) |
| [Mathias Bynens](https://mathiasbynens.be/) |
## License
_quoted-printable_ is available under the [MIT](http://mths.be/mit) license.
_quoted-printable_ is available under the [MIT](https://mths.be/mit) license.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc