🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

indian-pincode-search

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indian-pincode-search

Details of Post Office by searching Postal PIN Code or Post Office Branch Name of India.

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

About this package

Details of Post Office by searching Postal PIN Code or Post Office Branch Name of India.

Installation

Use the package to install into your project 😎

npm i indian-pincode-search

Usage

import { getNamesbyPincode, getPincodeByName } from "indian-pincode-search";

(async () => {
  console.log(await getNamesbyPincode(760008));
})();

#returns
[
  {
    name: 'Industrial Estates',
    district: 'Ganjam',
    state: 'Odisha',
    country: 'India'
  },
  {
    name: 'Lanjipalli',
    district: 'Ganjam',
    state: 'Odisha',
    country: 'India'
  }
]

#Error handling
(async () => {
  console.log(await getNamesbyPincode(760005558));
})();

#returns
No records found


(async () => {
  console.log(await getPincodeByName("lanjipalli"));
})();

# returns
[
  {
    pincode: '760008',
    district: 'Ganjam',
    state: 'Odisha',
    country: 'India'
  }
]

#Error handling
(async () => {
  console.log(await getPincodeByName("jsksjshsjnsnhj"));
})();

#returns
No records found

🔗 Connect

github

portfolio

linkedin

twitter

FAQs

Package last updated on 18 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts