Skip to content

quadramadery/js2py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Converts JavaScript to Python

Proof of concept, converting JS to Python, for example:

const BigN = require('bignumber.js')

class Calculator extends MathDevice {
  constructor (args = []) {
    super({})
  }

  static max (a, b) {
    return BigN.max(a, b)
  }

into

class Calculator(MathDevice):
  def __init__(self, args = []):
    super().__init__({})

  def add(self, a, b):
    return max(a, b)

About

Convert JavaScript to Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages