项目作者: iamsquare

项目描述 :
Cookie string/file parse utilities
高级语言: JavaScript
项目地址: git://github.com/iamsquare/cookie-parse.git
创建时间: 2020-12-23T16:06:28Z
项目社区:https://github.com/iamsquare/cookie-parse

开源协议:MIT License

下载


Cookie-Parse

@iamsquare/cookie-parse"">NPM GitHub issues GitHub License @iamsquare/cookie-parse"">NPM

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 @iamsquare/cookie-parse">npm:

  1. 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

Building

Just clone this repo and build the library:

  1. git clone --depth=0 https://github.com/iamsquare/cookie-parse
  2. cd cookie-parse/
  3. npm i
  4. npm run prod

npm run prod will run Jest and build the library only if it passes all tests. To build without testing:

  1. npm run build

TODO list

  • 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

Licensing

The code in this project is licensed under MIT License.