Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tangoalpha

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tangoalpha - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

17

index.js

@@ -21,2 +21,19 @@ const req = require('requestify')

exports.roi = async function () {
try {
var result = await req.get(basePublicUrl + 'estimatedroi')
result = Number(result.body)
if (result <= 0 || result === NaN || result === null || result === undefined) {
throw 'API Result doesn\'t seem right, TangoAlpha may be having problems'
}
return result
} catch (err) {
if (err.body) {
console.warn('TangoAlphaAPI Error caught: (' + err.body + ')')
} else {
console.warn('TangoAlphaAPI Error caught: (' + err + ')')
}
}
}
exports.blockdrift = async function () {

@@ -23,0 +40,0 @@ try {

2

package.json
{
"name": "tangoalpha",
"version": "1.0.0",
"version": "1.0.1",
"description": "The TangoAlpha Node.js API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -30,2 +30,10 @@ # TangoAlpha Node.js API

## Estimated ROI
```js
tango.roi().then(result => { //Result is a float
console.log(result) // Logs the estimated yearly ROI in Percentage
})
```
## Blockdrift

@@ -32,0 +40,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc