2.0.4 • Published 7 years ago

inspection_area v2.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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.

2.0.4

7 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.7

8 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago