Permalink
Browse files

Use HTTPS for IETF URLs

  • Loading branch information...
mathiasbynens committed Nov 21, 2014
1 parent 295fb16 commit 58fe0ddf6c71d8456c3e5ac679b9ad812b6ea9d3
Showing with 19 additions and 26 deletions.
  1. +1 −1 LICENSE-MIT.txt
  2. +4 −4 README.md
  3. +1 −1 bin/quoted-printable
  4. +2 −2 man/quoted-printable.1
  5. +4 −11 package.json
  6. +3 −3 quoted-printable.js
  7. +1 −1 scripts/export-data.js
  8. +3 −3 src/quoted-printable.js
@@ -1,4 +1,4 @@
Copyright Mathias Bynens <http://mathiasbynens.be/>
Copyright Mathias Bynens <https://mathiasbynens.be/>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -1,6 +1,6 @@
# 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_ 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

@@ -117,7 +117,7 @@ $ quoted-printable --encode < foo.txt > foo-quoted-printable.txt
Or do the same with an online text file:

```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
```

Or, the opposite — read a local file containing a `Quoted-Printable`-encoded message, decode it back to plain text, and save the result to a new file:
@@ -144,8 +144,8 @@ To generate the code coverage report, use `grunt cover`.

| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
|---|
| [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.
@@ -18,7 +18,7 @@

if (/^(?:-h|--help|undefined)$/.test(option)) {
log(
'quoted-printable v%s - http://mths.be/quoted-printable',
'quoted-printable v%s - https://mths.be/quoted-printable',
quotedPrintable.version
);
log([
@@ -53,6 +53,6 @@ Print the encoded version of the string that gets piped in.
.Sh BUGS
quoted-printable's bug tracker is located at <https://github.com/mathiasbynens/quoted-printable/issues>.
.Sh AUTHOR
Mathias Bynens <http://mathiasbynens.be/>
Mathias Bynens <https://mathiasbynens.be/>
.Sh WWW
<http://mths.be/quoted-printable>
<https://mths.be/quoted-printable>
@@ -2,7 +2,7 @@
"name": "quoted-printable",
"version": "0.2.1",
"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",
"bin": "bin/quoted-printable",
"man": "man/quoted-printable.1",
@@ -14,23 +14,16 @@
"quoted-printable",
"string"
],
"licenses": [
{
"type": "MIT",
"url": "http://mths.be/mit"
}
],
"license": "MIT",
"author": {
"name": "Mathias Bynens",
"url": "http://mathiasbynens.be/"
"url": "https://mathiasbynens.be/"
},
"repository": {
"type": "git",
"url": "https://github.com/mathiasbynens/quoted-printable.git"
},
"bugs": {
"url": "https://github.com/mathiasbynens/quoted-printable/issues"
},
"bugs": "https://github.com/mathiasbynens/quoted-printable/issues",
"files": [
"LICENSE-MIT.txt",
"quoted-printable.js",
@@ -1,4 +1,4 @@
/*! 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) {

// Detect free variables `exports`.
@@ -20,7 +20,7 @@
var stringFromCharCode = String.fromCharCode;
var decode = function(input) {
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
// space on a line must be deleted, as it will necessarily have been added
// by intermediate transport agents.”
@@ -33,7 +33,7 @@
// 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) {
var codePoint = parseInt($1, 16);
return stringFromCharCode(codePoint);
@@ -1,7 +1,7 @@
var fs = require('fs');
var regenerate = require('regenerate');

// http://tools.ietf.org/html/rfc2045#section-6.7
// https://tools.ietf.org/html/rfc2045#section-6.7
// safe-char := <any octet with decimal value of 33 through
// 60 inclusive, and 62 through 126>
// ; Characters not listed as "mail-safe" in
@@ -1,4 +1,4 @@
/*! http://mths.be/quoted-printable v<%= version %> by @mathias | MIT license */
/*! https://mths.be/quoted-printable v<%= version %> by @mathias | MIT license */
;(function(root) {

// Detect free variables `exports`.
@@ -20,7 +20,7 @@
var stringFromCharCode = String.fromCharCode;
var decode = function(input) {
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
// space on a line must be deleted, as it will necessarily have been added
// by intermediate transport agents.”
@@ -33,7 +33,7 @@
// 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) {
var codePoint = parseInt($1, 16);
return stringFromCharCode(codePoint);

0 comments on commit 58fe0dd

Please sign in to comment.