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

bca-api

v1.0.8

Published

BCA(Bank Central Asia) settlement information fetcher written by ES7(NodeJS)

Downloads

14

Readme

BCA API for NodeJS

For users

How to use

  1. npm i -S bca-api
  2. import BCA from 'bca-api' or see sample/index.js test/main.js
  3. Login to BCA developers and modify secret.json.sample
  4. Write some code with await new BCA().index()
  5. Contact to [email protected] and plan UAT on Whatsapp

How it works

  • Curl-exec impementation
  • Reference implementation is bca-php
  • Tried to use axios but some difficulty regarding headers format was there. (I'm waiting for your pull-request!)
  • bca-php worked well, so I choosed same way.

Note

  • /src is written to work on node-v8.6.0 or babel-node
  • /dist is exported by babel to wrok on node-v6.9.5
  • client_id, client_secret, api_key, api_secret are on dashboard
  • corporate_id is on KlikBCA admin dashboard
  • account_number is your company's bank account number

For commiters!

How to start development

  • npm run install
  • npm run test:local
  • Get secret.json by referring Note section above
  • npm run test:sandbox

###How to publish as npm module

  • Write some code and update version on package.json
  • Once delete node_modules then npm run test:sandbox npm run build node index.js for confirming no error over current package.json
  • git tag <your version>
  • !!! Please confirm you're not adding your secret.json !!!
  • npm publish

Future plan

  • Further testability
  • Modern HTTP adaptor
  • Multiple amount bank account handling for scalability