Skip to content
This repository was archived by the owner on Aug 8, 2019. It is now read-only.

binary-com/shortcode_processing

Repository files navigation

shortcode_processing Build Status

This project is used for converting Binary.com provided short-code to long-code.

Usage:

If you have npm installed, use:

$ npm install binary-com-longcode --save

For yarn, use:

$ yarn add binary-com-longcode

In code:

import {Longcode} from 'binary-com-longcode';

const longcodeGenerator = new Longcode(active_symbols, language, currency);
console.log(longcodeGenerator.get('some_short_code'));

Or:

var longcode = require('binary-com-longcode').Longcode;
var longcodeGenerator = new Longcode(active_symbols, language, currency);

console.log(longcodeGenerator.get('some_short_code'));

Use with proposal object:

To use it with proposal object please pass the raw response from the api to the function, eg:

var longcode = require('binary-com-longcode').Longcode;
var longcodeGenerator = new Longcode(active_symbols, language, currency);
console.log(longcodeGenerator.get(proposal_response));

Note: For successful release update the version in package.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •