https://github.com/iamsquare/cookie-parse
Cookie string/file parse utilities
https://github.com/iamsquare/cookie-parse
cookie-parse cookie-string parse-utilities typescript
Last synced: over 1 year ago
JSON representation
Cookie string/file parse utilities
- Host: GitHub
- URL: https://github.com/iamsquare/cookie-parse
- Owner: iamsquare
- License: mit
- Created: 2020-12-23T16:06:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T06:49:40.000Z (over 3 years ago)
- Last Synced: 2025-03-18T03:41:39.822Z (over 1 year ago)
- Topics: cookie-parse, cookie-string, parse-utilities, typescript
- Language: JavaScript
- Homepage: https://iamsquare.it/cookie-parse
- Size: 2.29 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cookie-Parse
[](https://www.npmjs.com/package/@iamsquare/cookie-parse) [](https://github.com/iamsquare/complex.js/issues) [](https://github.com/iamsquare/cookie-parse/blob/master/LICENSE) [](https://nodei.co/npm/@iamsquare/cookie-parse)
> Basic cookie string/file parse utilities.
## Getting started
Cookie-Parse utilities can be used in both browsers and Node.js:
Install Cookie-Parse by using [npm](https://www.npmjs.com/package/@iamsquare/cookie-parse):
```shell
npm i @iamsquare/cookie-parse
```
> Since this library is compiled from Typescript, type definition files are provided by default. No additional @types installation required!
## Documentation
You can check the documentation [here](http://iamsquare.it/cookie-parse)
## Building
Just clone this repo and build the library:
```shell
git clone --depth=0 https://github.com/iamsquare/cookie-parse
cd cookie-parse/
npm i
npm run prod
```
`npm run prod` will run Jest and build the library only if it passes all tests. To build without testing:
```shell
npm run build
```
## TODO list
- [x] ~~Documentation~~.
- [ ] `ParsedCookie` serialization.
- [ ] Check edge cases.
- [ ] Add examples.
- [ ] Migrate tests to typescript when I resolve some issues with typescript and custom jest matchers.
## Built With
- [Typescript](https://www.typescriptlang.org/) - Main language.
- [Ramda](https://ramdajs.com/), [Ramda-Adjunct](https://char0n.github.io/ramda-adjunct), [Ramda-Extension](https://ramda-extension.firebaseapp.com/docs/) - Functional programming library.
- [Jest](https://jestjs.io/) - Testing framework.
## Licensing
The code in this project is licensed under MIT License.