1 Star 1 Fork 0

liees / inspection_area

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
WTFPL

Inspection_area

Check whether the name entered manually in China's provinces and municipalities is correct

Build Status npm version Coverage Status CRAN


The data of the project area nationwide come from:modood's Administrative-divisions-of-China

Installtion

npm install inspection_area --save

Use

const inspection = require('inspection_area');

Function

  • Check the input provinces and cities are correct
inspection.check(province, city, [area])

return type:boolean


Example:

let isTrue = inspecte.check('北京市', '北京市', '朝阳区');

console.log(isTrue)  // true
typeof isTrue       // boolean

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

this repo is released under the WTFPL – Do What the Fuck You Want to Public License.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2017 liees <136625007@qq.com> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO.

简介

Check whether the name entered manually in China's provinces and municipalities is correct 展开 收起
JavaScript
WTFPL
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/liangqi1030/inspection_area.git
git@gitee.com:liangqi1030/inspection_area.git
liangqi1030
inspection_area
inspection_area
master

搜索帮助