Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)
===

Cookies Attributes: domain, expires, httpOnly, maxAge, overwrite, path, sameSite, secure

🚄 [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


© Art Deco for Idio 2019


Idio




Tech Nation Visa


Tech Nation Visa Sucks