
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
indian-postalcode-details
Advanced tools
A simple Node.js utility to get **city** and **state** from an Indian **PIN code**, powered by the India Post API.
A simple Node.js utility to get city and state from an Indian PIN code, powered by the India Post API.
npm install indian-postalcode-details
##
const { getCityStateFromPincode } = require('indian-postalcode-details');
(async () => {
const result = await getCityStateFromPincode('560001');
console.log(result);
})();
---
## Output:
{
"city": "Bengaluru",
"state": "Karnataka"
}
---
## API
getCityStateFromPincode(pincode)
| Parameter | Type | Description |
| --------- | -------- | ----------------------- |
| `pincode` | `string` | 6-digit Indian PIN code |
---
## Returns a Promise that resolves to:
{ city: 'City Name', state: 'State Name' }
---
## Error Handling
If the PIN code is invalid or the API fails:
throw new Error('Invalid PIN code' or 'Failed to fetch data');
---
## 🔗 Powered By
India Post API
---
## 📝 License
MIT © 2025 Abhinav Anand
FAQs
A simple Node.js utility to get **city** and **state** from an Indian **PIN code**, powered by the India Post API.
The npm package indian-postalcode-details receives a total of 0 weekly downloads. As such, indian-postalcode-details popularity was classified as not popular.
We found that indian-postalcode-details demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.