2.0.4 • Published 6 years ago

inspection_area v2.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
6 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

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago