New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

petro

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

petro - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

11

index.js
const bent = require('bent');
const chalkAnimation = require('chalk-animation');
bent('https://petroapp-price.petro.gob.ve', 'POST', 'json', 200)('/price/', {
const request = bent('https://petroapp-price.petro.gob.ve', 'POST', 'json', 200);
console.log('Calculando...');
request('/price/', {
"coins": ["PTR"],

@@ -9,3 +14,5 @@ "fiats": ["USD"]

}).then((response) => {
console.log(`El precio del PTR es: $${response.data.PTR.USD}`)
chalkAnimation.rainbow(`El precio del PTR es: $${response.data.PTR.USD}`);
}).catch((e) => console.log(e));

6

package.json
{
"name": "petro",
"version": "1.0.2",
"version": "1.0.3",
"author": "Cristian Martinez <dev.cmartinez@gmail.com>",

@@ -8,6 +8,8 @@ "bin": {

},
"main": "index.js",
"license": "MIT",
"dependencies": {
"bent": "^7.3.12"
"bent": "^7.3.12",
"chalk-animation": "^1.6.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