All files / cookie origin.js

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14                        1x  
/**
 * 提供对 cookie 的读写能力
 * - 此模块直接提供 js-cookie 的原生能力,不做任何自动编解码
 * @module cookie/origin
 * @see https://www.npmjs.com/package/js-cookie
 * @example
 * var $cookie = require('@spore-ui/kit/packages/cookie/origin');
 * $cookie.set('name', 'value', {
 *   expires: 1
 * });
 * $cookie.read('name') // 'value'
 */
module.exports = require('js-cookie');