Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idiocc/cookies
Signed And Unsigned Cookies Based On Keygrip Written In ES6 And Optimised With JavaScript Compiler.
https://github.com/idiocc/cookies
cookies es6 keygrip koa middleware nodejs
Last synced: about 2 months ago
JSON representation
Signed And Unsigned Cookies Based On Keygrip Written In ES6 And Optimised With JavaScript Compiler.
- Host: GitHub
- URL: https://github.com/idiocc/cookies
- Owner: idiocc
- License: other
- Created: 2019-05-05T23:45:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T04:46:59.000Z (about 5 years ago)
- Last Synced: 2024-12-14T22:19:24.444Z (about 2 months ago)
- Topics: cookies, es6, keygrip, koa, middleware, nodejs
- Language: JavaScript
- Homepage: https://www.idio.cc
- Size: 335 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: CHANGELOG.md
- License: COPYING
Awesome Lists containing this project
README
# @goa/cookies
[![npm version](https://badge.fury.io/js/%40goa%2Fcookies.svg)](https://npmjs.org/package/@goa/cookies)
`@goa/cookies` is a fork of 🗝 [Signed And Unsigned Cookies Based On Keygrip](https://github.com/pillarjs/cookies) Written In ES6, Annotated With [Externs](/types/externs) And Optimised With [JavaScript Compiler](https://compiler.page).
```sh
yarn add @goa/cookies
```[📕 READ DOCUMENTATION ON GITHUB](https://github.com/idiocc/cookies)
## Wiki
Wiki contains the following pages with additional information about the package.
🍪 [Cookie Attributes](../../wiki/Cookie-Attributes)
===🚄 [Express And Connect Middleware Constructor](../../wiki/Express-And-Connect)
===Cookies can be used via express and connect easily by calling the middleware constructor functions to get middleware that can be installed on the app.
⚜️ [Keygrip](../../wiki/Keygrip)
===The Keygrip can be passed in the
keys
property of the constructor. By default, the new instance of Keygrip will be created when an array of keys is passed, but custom implementations of Keygrip which override the sign and verify functions can be passed to cookies.🔗 [View Compiler Externs](../../wiki/Compiler-Externs)
===The externs are required to compile the package yet keep the options' properties in tact, i.e. without renaming the properties. The API is preserved for 2nd level compilation in other packages, such as Goa, and is tested on the 1st level compilation of the package itself.
© Art Deco for Idio 2019
Tech Nation Visa Sucks