UNPKG

districts-nepal

Version:

contains all the districts of nepal along with the states

40 lines (35 loc) 853 B
# districts-Nepal🇳🇵 ## How to use districtModule.js Example: <br> <code> const districts=require('./district'); </code> <br> <code> console.log(districts.findState('Bara')); </code> <br> Response: <code> [ { id: '8', title: 'Bara', stateno: '2' } ] </code> <br> <code> console.log(districts.listByState('2')); </code> <br> Response: <code> [ { 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' } ] </code>