prefecture-jp
v0.1.0
Published
Search the JIS/ISO code by prefecture in Japan, the prefecture by JIS/ISO code and so on.
Downloads
12
Maintainers
Readme
prefecture-jp
Search the JIS/ISO code by prefecture in Japan, the prefecture by JIS/ISO code and so on.
Install
$ npm install --save prefecture-jp
Usage
var prefectureJp = require('prefecture-jp');
var prefs = prefectureJp({ schema: prefectureJp.JIS_X_0401 });
prefs.search({pref: '愛知'}, function(callback){
callback.code;// => '23'
callback.pref;// => '愛知県'
});
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using gulp.
License
Copyright (c) 2014 sanemat. Licensed under the MIT license.