Skip to content

Repository files navigation

data.js

Browser data sharing, node data cache click @xuexb/key-cache

code style fecsLinux BuildTest CoverageDevDependencies

只是玩玩,别当真~

Api

Data.set

/** * 设置数据 * * @param {string|number} key 数据的key * @param {*} value 数据值 * * @return {Object} Data */

Data.get

/** * 获取数据 * * @param {string|number|undefined} key 数据的key,如果为空,则获取全部数据 * * @return {*} 数据结果,如果数制不存在将返回undefined */

Data.remove

/** * 删除数据 * * @param {string|number|undefined} key 数据的key,如果为空,则删除所有的数据 * * @return {Object} Data */

Develop

git clone https://github.com/zbfe/data.js.git
cd data.js
npm install
# 安装push前检查代码勾子
npm run hook-install

Test

Test case by jasmine, test environment by karmaphantomjs

# 运行测试
npm run test# 运行测试覆盖率
npm run test-cov
# 运行代码检查
npm run check

About

Data Sharing

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages