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 🙏

© 2026 – Pkg Stats / Ryan Hefner

app-binary

v1.0.4

Published

Simple trading binary rise and fall

Readme

App - Binary

simple code for trading on binary.com | binary.me | deriv.com

Installation

npm install app-binary
var App = require('app-binary');
var app = new App('YOUR-API-TOKEN');

Create YOUR-API-TOKEN

Simple function

  • new App()
  • instance
    • .spot()
    • .buy()
    • .portfolio()
  • spot()
    • Input source: 'R_10' | 'R_100' | 'R_25' | 'R_75' | 'R_50' | 'RDBULL' | 'RDBEAR'
   app.spot('R_10')
   { spot: { data: 2693.386, time: '18:42:52', color: 'R', worm: 'R' } }
  • buy()
    • Parameters:
      • stake : amount
      • currency : currency
      • contract : 'RISE' | 'FALL'
      • duration : duration
      • duration_set: 't' | 's' | 'm'
   app.buy({
      stake   : 0.50,
      currency: 'USD',
      contract: 'RISE',
      duration: '5',
      duration_set: 't'
   })
  { buy: 'success' }
  • portfolio()
   app.portfolio();
{
  portfolio: {
    ref: 183215154588,
    potiontial_payout: 0.94,
    contract_details: 'Win payout if Volatility 25 Index after 5 ticks is strictly higher than entry spot.',
    purchase: 0.5,
    indicative: 0.94,
    result: 'won'
  }
}

Simple Code

var App = require('app-binary');
var app = new App('YOUR-API-TOKEN');
var action_buy = false;
var stake = 0.50;
function Play(){
    app.Binary((e)=>{
        console.log(e)
        if(e.profile) app.spot('R_25')
        if(e.spot){
            if(e.spot.worm == 'B' && action_buy == false){
                action_buy = true
                app.buy({
                    stake   : stake,
                    currency: 'USD',
                    contract: 'RISE',
                    duration: '5',
                    duration_set: 't'
                })
            }
        }
        if(e.buy == 'success'){
            app.portfolio()
        }
        if(e.portfolio){
        if(e.portfolio.result == 'won'){
            //if won statement
            stake = 0.5
            action_buy = false
        }
        if(e.portfolio.result == 'lost'){
            //if lost statement
            stake *= 2.1
            action_buy = false
        }
        }
        if(e.reconnect){
            setTimeout(Play, 2000)
        }
    });
}
Play()

Donate

  1. LTC : MQKX75b7jLLYxYFbMKBeJzCG1jkrELMdgW
  2. ETH : 0x8192094D0B489c1ec9eeC8c94c6e9714cF804f95
  3. BCH : 1Eo7Jqs4QPDenwrJhXQf3KAHsJPaRKX1n5
  4. BTC : 3LeipTSieBfM91LqfwYrcEQZJ84QB2cmJc
  5. DASH: Xu7xVsfwGSJ2oHgeiWo66LaHcgKzaCqatv
  6. XRP : rw2ciyaNshpHe7bCHo4bRWq6pqqynnWKQg:::ucl:::195522318