Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onesy-me/cookie
Cookie
https://github.com/onesy-me/cookie
amaui back-end backend browser cookie cookies front-end frontend javascript js typescript web
Last synced: 10 days ago
JSON representation
Cookie
- Host: GitHub
- URL: https://github.com/onesy-me/cookie
- Owner: onesy-me
- License: mit
- Created: 2022-02-03T16:05:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T20:30:17.000Z (23 days ago)
- Last Synced: 2024-12-11T20:36:26.065Z (23 days ago)
- Topics: amaui, back-end, backend, browser, cookie, cookies, front-end, frontend, javascript, js, typescript, web
- Language: JavaScript
- Homepage: https://docs.onesy.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
onesy 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 @onesy/cookie
```### Use
```javascript
import OnesyCookie from '@onesy/cookie';const onesyCookie = new OnesyCookie();
// Add
onesyCookie.add('a', 4);// Has
onesyCookie.has('a');// true
// Get
onesyCookie.get('a');// 4
// Remove
onesyCookie.remove('a');onesyCookie.get('a');
// undefined
```### Dev
Install
```sh
yarn
```Test
```sh
yarn test
```### Prod
Build
```sh
yarn build
```