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

@magic.batua/recharge

v2.0.2

Published

The Recharge module manages all the mobile prepaid, datacard and DTH recharge functionalities of the Magic Batua platform.

Downloads

55

Readme

Magic-Recharge

The Rechage module powering Magic API platform.

How to work with this module

  1. Clone the repository to your computer.

  2. Add a file named .env at the root of the project. This should be a YAML file and have the following environment variables:

    • RIP_MerchantID: Rocket in Pocket's client ID
    • RIP_MerchantKey: Rocket in Pocket client key. This is bound to a single IP.
    • RIP_RechargeURL: Base URL for Rocket in Pocket's Recharge API.
  3. Open Terminal (Command Prompt on Windows), cd to the project folder and type npm install. This would install all the NPM dependencies for this project, and transpile the Typescript code to JavaScript. Don't close the Terminal window.

  4. Next, type the following in the Terminal window: npm test. This would run all the unit test that I've written for this particular module. If all tests pass, you've got a fully working Recharge module in front you.

  5. To get a sense of the code structure, I'd recommend consulting the Code Manual. Code Manual is a local site that gets generated from the documentation comments I've left in the source code. To generate Code Manual on your computer, open the Terminal, cd to the project root and run npm run code-manual.

  6. You should now have a Code Manual folder at your project root. Open the index.html file in the folder in your favourite browser and enjoy the ride.

  7. Make sure you commit any changes made to the source code at regular intervals, and sync the changes back to the Bitbucket origin repository.

Contact

For queries, you can write to Animesh at [email protected]. Make sure you have read this before firing off a bug report.