Skip to content

Instantly share code, notes, and snippets.

View zoloadang's full-sized avatar

古斯比德 zoloadang

View GitHub Profile
@zoloadang
zoloadang / cookies.js
Created February 4, 2017 03:19 — forked from CrocoDillon/cookies.js
Export your awesome module using AMD, CommonJS, Node.js or just as global.
/*
* Inspiration (well… copy pasting more or less) from:
* https://github.com/ScottHamper/Cookies/blob/0.3.1/src/cookies.js#L127-L140
*
* Thanks Scott!
*/
(function (global) {
'use strict';
var MyModule = function () {