districts-nepal
v1.0.1
Published
contains all the districts of nepal along with the states
Downloads
4
Maintainers
Readme
districts-Nepal🇳🇵
How to use districtModule.js
Example:
const districts=require('./district');
console.log(districts.findState('Bara'));
Response:
[ { id: '8', title: 'Bara', stateno: '2' } ]
console.log(districts.listByState('2'));
Response:
[
{ id: '8', title: 'Bara', stateno: '2' },
{ id: '8', title: 'Bara', stateno: '2' },
{ id: '19', title: 'Dhanusa', stateno: '2' },
{ id: '41', title: 'Mahottari', stateno: '2' },
{ id: '54', title: 'Parsa', stateno: '2' },
{ id: '58', title: 'Rautahat', stateno: '2' },
{ id: '65', title: 'Saptari', stateno: '2' },
{ id: '66', title: 'Sarlahi', stateno: '2' },
{ id: '69', title: 'Siraha', stateno: '2' }
]