pesapress-lookup
v1.0.8
Published
Mpesa lookup API by PesaPress
Maintainers
Readme
PesaPress Lookup
Goal
Make it easy to integrate PesaPress number lookup service into any application to enable number hash decoding. Easy registration with only an email and get your number hash decoded.
Usage
Install
$ npm install pesapress-lookupSetup
const { PesaPressLookup } = require('pesapress');
const pesapress = new PesaPressLookup();Get mobile number from hash
Check for a mobile number from a hash.
const resp = await pesapress.search('MOBILENUMBER_HASH')
if ( resp ) {
resp.msisdn; // The decoded number
resp.hashed; // The original hash
} else {
// Error that api key is invalid
}Contributing
- Fork this repo and make changes in your own fork.
- Commit your changes and push to your fork
git push origin master - Create a new pull request and submit it back to the project.
Bugs & Issues
To report bugs (or any other issues), use the issues page.

