GithubHelp home page GithubHelp logo

node-tuc's Introduction

TUC

Bus

NPM

Installation

$ npm install tuc

Example

// require library
const Tuc = require('tuc');

// instance class
const tuc = new Tuc();

// set number
let number = '00758888';

// call method getBalance
tuc.getBalance(number, (balance) => {
  console.log(balance);
});

// call method getType
tuc.getType(number, (balance) => {
  console.log(balance);
});

Responses

30.00
Cuenta limitada (sin movil)

Contributors

This is a unoficial client. For more info visit https://mpeso.net/

node-tuc's People

Contributors

paulomcnally avatar hosmelq avatar brucelampson avatar

Stargazers

Maykol Laguna avatar Clear Bear avatar

Watchers

 avatar James Cloos avatar

node-tuc's Issues

Codigo tuc no acepta enteros

    var number = 34343434;
    tuc.getType(number.toString(), function( type ){ console.log(type); });
   // retorna error

Seria mas facil validar el largo del string en ves de usar regex que acepta solo string y luego verifica el largo

Error al intentar obtener la información desde el sitio de MPESO.

SyntaxError: Unexpected end of JSON input at Object.parse (native) at Request._callback (/home/polin/github/nodenica/node-tuc/lib/tuc.js:89:25) at Request.self.callback (/home/polin/github/nodenica/node-tuc/node_modules/request/request.js:121:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/home/polin/github/nodenica/node-tuc/node_modules/request/request.js:978:14) at emitOne (events.js:101:20) at Request.emit (events.js:188:7) at IncomingMessage.<anonymous> (/home/polin/github/nodenica/node-tuc/node_modules/request/request.js:929:12) at emitNone (events.js:91:20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.