@jswork/next-cookie

1.0.0 • Public • Published

next-cookie

A simple, lightweight JavaScript API for handling browser cookies for next.

version license size download

installation

npm install -S @jswork/next-cookie

apis

api params description
get inKey get single key cookey
gets - get all key cookey
set inKey,inValue,inOptions set cookie with options({ path:'/', expires: ''})
sets inObject,inOptions set cookie with object;
del inKey del the key
dels inArray del keys
clear - del all cookies

usage

import NxCookie from '@feizheng/next-cookie';

// code goes here:
NxCookie.get
NxCookie.gets
NxCookie.set
NxCookie.sets
NxCookie.del
NxCookie.dels
NxCookie.clear

resources

license

Code released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @jswork/next-cookie

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

8.49 kB

Total Files

5

Last publish

Collaborators

  • afeiship