Skip to content

careteenL/type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1fd63b4 · Dec 26, 2018

History

11 Commits
Nov 8, 2018
Nov 2, 2018
Nov 2, 2018
Dec 26, 2018
Nov 2, 2018
Nov 2, 2018
Nov 2, 2018
Nov 2, 2018
Nov 2, 2018
Nov 2, 2018
Nov 8, 2018
Nov 2, 2018
Nov 2, 2018
Nov 2, 2018
Nov 2, 2018
Nov 2, 2018
Dec 26, 2018
Nov 8, 2018
Nov 2, 2018
Nov 8, 2018
Nov 2, 2018

Repository files navigation

license Build Status npm NPM downloads

English Document

JavaScript类型检查,弥补typeof不足

快速使用

NPM

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

or CDN

<script src='https://unpkg.com/@careteen/type/dist/index.js'></script>
<script>
  var type = window['@careteen/type']
  type(null) // null
  type(/a/) // regexp
  type(new String('')) // string
  type(new String(''), true) // String  
</script>

更详细使用请查看API

兼容性

None

使用文档

issue模板

贡献者及指南

clone仓库并引入依赖

git clone [email protected]:careteenL/type.git
npm install

开始开发:)

...

编写详细使用文档介绍功能,可在本地查看http://127.0.0.1:8880

npm run doc

请编写单元测试覆盖所加功能

npm run test

启动本地服务器编写示例

npm run example

修改package.json README.md CHANGELOG.md版本号,再发布

npm run release

更新日志

计划

About

✔️JavaScript类型检查,弥补typeof不足

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published