type
JavaScript类型检查,弥补typeof
不足
快速使用
npm i -D @careteen/type
import type from '@careteen/type'
type(null) // null
type(/a/) // regexp
type(new String('')) // string
type(new String(''), true) // String
更详细使用请查看API
兼容性
IE9+
使用文档
issue模板
贡献者及指南
clone仓库并引入依赖
git clone git@github.com:careteenL/type.git
npm install
开始开发:)
...
请编写单元测试覆盖所加功能
npm run test
启动本地服务器编写示例
npm run example
修改package.json README.md CHANGELOG.md
版本号,再发布
npm run release