Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amaui-org/amaui-cookie
Cookie
https://github.com/amaui-org/amaui-cookie
amaui back-end backend browser cookie cookies front-end frontend javascript js typescript web
Last synced: about 2 months ago
JSON representation
Cookie
- Host: GitHub
- URL: https://github.com/amaui-org/amaui-cookie
- Owner: amaui-org
- License: mit
- Created: 2022-02-03T16:05:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T22:27:02.000Z (9 months ago)
- Last Synced: 2024-10-02T02:53:03.376Z (3 months ago)
- Topics: amaui, back-end, backend, browser, cookie, cookies, front-end, frontend, javascript, js, typescript, web
- Language: JavaScript
- Homepage: https://docs.amaui.me/library/cookie
- Size: 49.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
amaui Cookie
Cookie
MIT license
Production ready
UMD 4.6kb gzipped
100% test cov
Browser
Very simple code
Modern code
Junior friendly
Typescript
Made with :yellow_heart:
## Getting started
### Add
```sh
yarn add @amaui/cookie
```### Use
```javascript
import AmauiCookie from '@amaui/cookie';const amauiCookie = new AmauiCookie();
// Add
amauiCookie.add('a', 4);// Has
amauiCookie.has('a');// true
// Get
amauiCookie.get('a');// 4
// Remove
amauiCookie.remove('a');amauiCookie.get('a');
// undefined
```### Dev
Install
```sh
yarn
```Test
```sh
yarn test
```### Prod
Build
```sh
yarn build
```