mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
15
node_modules/base64-url/LICENSE
generated
vendored
Normal file
15
node_modules/base64-url/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
The ISC License
|
||||
|
||||
Copyright (c) 2014, Joaquim José F. Serafim
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
53
node_modules/base64-url/README.md
generated
vendored
Normal file
53
node_modules/base64-url/README.md
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
# base64-url
|
||||
|
||||
Base64 encode, decode, escape and unescape for URL applications.
|
||||
|
||||
<a href="https://nodei.co/npm/base64-url/"><img src="https://nodei.co/npm/base64-url.png?downloads=true"></a>
|
||||
|
||||
[](https://travis-ci.org/joaquimserafim/base64-url)
|
||||
|
||||
|
||||
## API
|
||||
|
||||
> base64url.encode('Node.js is awesome.');
|
||||
Tm9kZS5qcyBpcyBhd2Vzb21lLg
|
||||
|
||||
> base64url.decode('Tm9kZS5qcyBpcyBhd2Vzb21lLg');
|
||||
Node.js is awesome.
|
||||
|
||||
> base64url.escape('This+is/goingto+escape==');
|
||||
This-is_goingto-escape
|
||||
|
||||
> base64url.unescape('This-is_goingto-escape');
|
||||
This+is/goingto+escape==
|
||||
|
||||
|
||||
## Development
|
||||
|
||||
**this projet has been set up with a precommit that forces you to follow a code style, no jshint issues and 100% of code coverage before commit**
|
||||
|
||||
|
||||
to run test
|
||||
``` js
|
||||
npm test
|
||||
```
|
||||
|
||||
to run jshint
|
||||
``` js
|
||||
npm run jshint
|
||||
```
|
||||
|
||||
to run code style
|
||||
``` js
|
||||
npm run code-style
|
||||
```
|
||||
|
||||
to check code coverage
|
||||
``` js
|
||||
npm run check-coverage
|
||||
```
|
||||
|
||||
to open the code coverage report
|
||||
``` js
|
||||
npm run open-coverage
|
||||
```
|
||||
24
node_modules/base64-url/index.js
generated
vendored
Normal file
24
node_modules/base64-url/index.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
var base64url = module.exports;
|
||||
|
||||
base64url.unescape = function unescape (str) {
|
||||
return (str + Array(5 - str.length % 4)
|
||||
.join('='))
|
||||
.replace(/\-/g, '+')
|
||||
.replace(/_/g, '/');
|
||||
};
|
||||
|
||||
base64url.escape = function escape (str) {
|
||||
return str.replace(/\+/g, '-')
|
||||
.replace(/\//g, '_')
|
||||
.replace(/=/g, '');
|
||||
};
|
||||
|
||||
base64url.encode = function encode (str) {
|
||||
return this.escape(new Buffer(str).toString('base64'));
|
||||
};
|
||||
|
||||
base64url.decode = function decode (str) {
|
||||
return new Buffer(this.unescape(str), 'base64').toString();
|
||||
};
|
||||
96
node_modules/base64-url/package.json
generated
vendored
Normal file
96
node_modules/base64-url/package.json
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"base64-url@1.2.1",
|
||||
"/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/uid-safe"
|
||||
]
|
||||
],
|
||||
"_from": "base64-url@1.2.1",
|
||||
"_id": "base64-url@1.2.1",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/base64-url",
|
||||
"_npmUser": {
|
||||
"email": "joaquim.serafim@gmail.com",
|
||||
"name": "quim"
|
||||
},
|
||||
"_npmVersion": "1.4.28",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "base64-url",
|
||||
"raw": "base64-url@1.2.1",
|
||||
"rawSpec": "1.2.1",
|
||||
"scope": null,
|
||||
"spec": "1.2.1",
|
||||
"type": "version"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/uid-safe"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/base64-url/-/base64-url-1.2.1.tgz",
|
||||
"_shasum": "199fd661702a0e7b7dcae6e0698bb089c52f6d78",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "base64-url@1.2.1",
|
||||
"_where": "/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/uid-safe",
|
||||
"author": {
|
||||
"name": "@joaquimserafim"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/joaquimserafim/base64-url/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Base64 encode, decode, escape and unescape for URL applications",
|
||||
"devDependencies": {
|
||||
"istanbul": "^0.3.5",
|
||||
"jscs": "^1.9.0",
|
||||
"jshint": "^2.5.11",
|
||||
"pre-commit": "0.0.9",
|
||||
"tape": "^3.0.3",
|
||||
"which": "^1.0.8"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "199fd661702a0e7b7dcae6e0698bb089c52f6d78",
|
||||
"tarball": "http://registry.npmjs.org/base64-url/-/base64-url-1.2.1.tgz"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"README.md",
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "a548396819f17b1fb1529791ab8a2c1934d03f3e",
|
||||
"homepage": "https://github.com/joaquimserafim/base64-url",
|
||||
"keywords": [
|
||||
"base64",
|
||||
"base64url"
|
||||
],
|
||||
"license": "ISC",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "quim",
|
||||
"email": "joaquim.serafim@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "base64-url",
|
||||
"optionalDependencies": {},
|
||||
"pre-commit": [
|
||||
"check-coverage",
|
||||
"code-style",
|
||||
"jshint",
|
||||
"test"
|
||||
],
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/joaquimserafim/base64-url.git"
|
||||
},
|
||||
"scripts": {
|
||||
"check-coverage": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
|
||||
"code-style": "jscs -p google *.js",
|
||||
"coverage": "open coverage/lcov-report/index.html",
|
||||
"jshint": "jshint -c .jshintrc *.js",
|
||||
"test": "istanbul cover tape test.js"
|
||||
},
|
||||
"version": "1.2.1"
|
||||
}
|
||||
Reference in New Issue
Block a user