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

marasoft

v0.0.15

Published

package for marasoft APIs

Downloads

21

Readme

Marasoft

npm npm NPM

About

This provides easy access to Marasoft APIS. All are properly & fully tested. Available features include:

  • Account: get balance, statement, transfers and transactions.
  • Payment: create dynamic account.
  • Tool: banks, resolve Bank account number, check transaction dtatus, check transfer Status.
  • Transfer: initiate transfer to bank account.
  • USSD: get ussd banks, generate ussd code for payment/collection.

Getting Started

Technologies · Installations · Usage · Components · Tests · Author

Technologies Used

  • ESLint - A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript.
  • Jest - Jest is a JavaScript testing framework maintained by Facebook, Inc. designed and built by Christoph Nakazawa with a focus on simplicity and support for large web applications.
  • Airbnb style guide was followed.
  • TypeScript

Installations

Getting started

  • You need to have your marasoft encoding key and NPM installed on your computer.

Setup

  • Installing the project dependencies

    Run the command below

    $ npm install marasoft

Usage

$ const { Marasoft } = require('marasoft');
$ const  marasoft = new Marasoft('encryptionKey');

Components

  • Account
    • GET ACCOUNT BALANCE
    const { Marasoft } = require('marasoft');
    const  marasoft = new Marasoft('encryptionKey');
    const response = await marasoft.account.balance() 
    • GET STATEMENT
     marasoft.account.statement({
    start_date: '01-01-2024',
    end_date: '20-01-2024'
    }) 
    • GET ACCOUNT TRANSFERS
    const response = await marasoft.account.transfers({
    start_date: '01-01-2024', // required
    end_date: '20-01-2024' // required
    })  
    • GET ACCOUNT TRANSACTIONS - the account collection
    marasoft.account.transactions({
    start_date: '01-01-2024', // required
    end_date: '20-01-2024' // required
    }) 
  • Payment
    • CREATE DYNAMIC ACCOUNT FOR PEOPLE TO TRANSFER TO
    marasoft.payment.generateDynamicAccount({
     amount:"3000", // required
     transaction_ref:"your-transaction-reference" // required
    })
  • TOOL
    • RESOLVE BANK ACCOUNT NUMBER
     marasoft.tool.resolveBank({
     bank_code:"044", // required field
     account_number:"0691660675" // required field
    })  
    • GET BANKS
     marasoft.tool.banks() 
    • GET TRANSACTION STATUS
     marasoft.tool.transactionStatus({
     transaction_ref: 'your-transaction-reference'// required
    }) 
    • GET TRANSFER STATUS
     marasoft.tool.transactionStatus({
     transaction_ref: 'your-transfer-reference'// required
    })
  • Transfer
    • TRANSFER TO ACCOUNT NUMBER
     marasoft.transfer.initiate({
     bank_code:"044", // required field
     account_number:"0691660675" // required field
     transactionRef:"your-transaction-reference" //required field
     amount:"3000" // required field
     description:"" //required
     currency:"NGN" //required
    })  
  • USSD
    • GET USSD BANKS - This describes how to get available ussd banks
    const { Marasoft } = require('marasoft');
    const  marasoft = new Marasoft('encryptionKey');
    const response = await marasoft.ussd.banks() 
    • GET USSD CODE - to make payment using ussd code
    marasoft.ussd.generateUssdCode({
     amount:"3000", // required field
     email_address:"email-address", //required field
     phone_number:"09028238134" // required
     redirect_url:"your-redirect-url", //required field
     request_type:"live" // required field (live or test)
     user_bear_charge:"yes" //required field (yes or no)
     merchant_ref:"", //required
     name:"name", //required
     currency:"NGN", //required
     description:"", //required
     ref_id:"", //required 
     user_bank_code:"044" / REQUIRED
    })

Author