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

degiro-api

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

degiro-api - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

lib/main.d.ts

12

package.json
{
"name": "degiro-api",
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"public": true,
"description": "Degiro test scripts",
"main": "src/main.js",
"main": "lib/main.js",
"types": "lib",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "tsc -p ."
},

@@ -18,3 +19,6 @@ "keywords": [

"author": "Ignacio F. Castillejo Gómez",
"license": "MIT"
"license": "MIT",
"devDependencies": {
"typescript": "^3.8.3"
}
}

@@ -1,27 +0,3 @@

// Import DeGiro API Module
import DeGiro from 'degiro'
// Import async main function
import main from './degiro.js'
// Prepare DeGiro data
const DEGIRO_USERNAME = 'nachoogoomezomg'
const DEGIRO_PWD = process.env.DEGIRO_PWD
const DEGIRO_OTP = process.env.DEGIRO_OTP
// Check if username and password exists
if (!DEGIRO_USERNAME) throw new Error('DeGiro username needed')
if (!DEGIRO_PWD) throw new Error('DeGiro password needed')
// Create DeGiro Init Payload
const DEGIRO_INIT_PAYLOAD = {
username: DEGIRO_USERNAME,
password: DEGIRO_PWD,
// oneTimePassword: DEGIRO_OTP
}
// Init DeGiro client
const degiro = DeGiro.create(DEGIRO_INIT_PAYLOAD)
degiro.login().then(session => console.log(session)).catch(error => console.error(error))
export function add(a: number, b: number) {
return a +b
}
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