@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('');
});

Readme

Keywords

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