npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ifsc-finder

v1.1.5

Published

Get bank details by IFSC code.

Downloads

12

Readme

IFSC Finder

IFSC Finder is module based on Razorpay's API to get IFSC details. It provides simple way to get bank detailed for specific IFSC code.

IFSC-Finder

Testcases Package Publish

Example Usage

var ifsc = require('ifsc-finder');

Documentation

Installation

Use following command to install IFSC finder

npm install ifsc-finder

Basic Usage

If you want to get details (Bank, City, State, etc) for specific IFSC_code following function will be usefull.

ifsc.get(IFSC_code).then(function(res){
    console.log(res);
})

Different functions are avaiable to get only specific details like Bank Name, Bank Code, City, State, etc. Below is example to get Bank Name for IFSC_Code.

ifsc.getBankName(IFSC_code).then(function(res){
    console.log(res);
})

Functions to get specific details

  • getBankName(IFSC_Code) - Returns Bank Name for specified IFSC code
  • getBranchName(IFSC_Code) - Returns Branch Name for specified IFSC code
  • getBankCode(IFSC_Code) - Returns Bank Code for specified IFSC code
  • getMicr(IFSC_Code) - Returns bank's MICR Code for specified IFSC code
  • getDistrict(IFSC_Code) - Returns District for specified IFSC code
  • getCity(IFSC_Code) - Returns City for specified IFSC code
  • getState(IFSC_Code) - Returns State for specified IFSC code
  • getContact(IFSC_Code) - Returns Contact Number for specified IFSC code
  • getAddress(IFSC_Code) - Returns bank's Address for specified IFSC code
  • isUpi(IFSC_Code) - Returns true if bank supports UPI for specified IFSC code
  • isImps(IFSC_Code) - Returns true if bank supports IMPS for specified IFSC code
  • isNeft(IFSC_Code) - Returns true if bank supports NEFT for specified IFSC code
  • isRtgs(IFSC_Code) - Returns true if bank supports RTGS for specified IFSC code

Advanced Usage

Get only required details like Bank, City, etc. in one function call. See below example:

var details_list = ['bank','state','Contact']
ifsc.get(IFSC_code, details_list).then(function(res){
    console.log(res);
})

// Output:
{ BANK: 'Credit Suisse Bank', STATE: 'Maharastra', CONTACT: ' 022 6777 3417' } 

Note : Passing invalid/unsupported detail Id (e.g 'state2') in details list ifsc.get() will be returned in SKIPPED. See below sample output:

{ BANK: 'Credit Suisse Bank', STATE: 'Maharastra', CONTACT: ' 022 6777 3417' , SKIPPED: ['state2'] }

If you pass single detail instead of details array then ifsc.get() will return plain string insead of object.

ifsc.get(IFSC_code, "bank").then(function(res){
    console.log(res);
})

// Output: 
Credt Suisse Bank

Currently available detail Ids - CENTRE, IMPS, UPI, ADDRESS, STATE, DISTRICT, RTGS, MICR, NEFT, BRANCH, CITY, CONTACT, MICR, MICR CODE, BANK, BANKCODE, IFSC.