@geeeger/cookie
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

cookie

cookie工具

Usage

const cookie = require('@geeeger/cookie');

test('cookie getCookie', () => {
    expect(cookie.setCookie('test', '123')).toEqual({
        setCookieKey: 'test',
        setCookieValue: '123',
    });
    expect(cookie.getCookie('test')).toBe('123');
    expect(cookie.delCookie('test')).toEqual({
        delCookieKey: 'test',
        delCookieValue: '123',
    });
    expect(cookie.getCookie('test')).toBe('');
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.72latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.72
2.0.40
2.0.00
1.1.01
1.0.10

Package Sidebar

Install

npm i @geeeger/cookie

Weekly Downloads

0

Version

2.0.7

License

ISC

Unpacked Size

2.71 kB

Total Files

4

Last publish

Collaborators

  • geeeger