nv-cookie-parse-cookie
v1.0.2
Published
nv-cookie-parse-cookie ========================== - a loose cookie parse for error recover
Downloads
25
Readme
nv-cookie-parse-cookie
- a loose cookie parse for error recover
install
- npm install nv-cookie-parse-cookie
splitted
usage
const {parse_body_only,parse} = require("nv-cookie-parse-cookie");
example
> parse_body_only(`_ga=GA1.2.1726553852.1670152785; _gid=GA1.2.1798264991.1705656130`)
{
_ga: 'GA1.2.1726553852.1670152785',
_gid: 'GA1.2.1798264991.1705656130'
}
> parse_body_only(`"_ga"="GA1.2.1726553852.1670152785"; "g i d"="A B C D E"`)
{ _ga: 'GA1.2.1726553852.1670152785', 'g i d': 'A B C D E' }
> parse_body_only(`_ga:GA1.2.1726553852.1670152785 "g i d":"A B C D E"`)
{ _ga: 'GA1.2.1726553852.1670152785', 'g i d': 'A B C D E' }
> parse_body_only(`_ga:GA1.2.1726553852.1670152785 , "g i d":"A B C D E"`)
{ _ga: 'GA1.2.1726553852.1670152785', 'g i d': 'A B C D E' }
>
parse_body_only(`konly0 konly1 ,konly2; "g i d":"A B C D E"`)
{ konly0: '', konly1: '', konly2: '', 'g i d': 'A B C D E' }
METHODS
APIS
LICENSE
- ISC