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' }
]
districts-nepal
1.0.1 • Public • PublishedPackage Sidebar
Install
npm i districts-nepal
Weekly Downloads
1
Version
1.0.1
License
ISC
Unpacked Size
8.33 kB
Total Files
4