binance / binance-connector-node

A simple connector to Binance Public API
MIT License
566 stars 164 forks source link

Feature request: Publish as ESM (to support Deno) #74

Open jcayzac opened 2 years ago

jcayzac commented 2 years ago

Please publish this package as an ESM, so it can be used in Deno too.

fibo commented 2 years ago

@jcayzac you should be able to createRequire from deno standard library and import a CommonJS module.

reference here: https://deno.land/std@0.138.0/node/README.md#commonjs-modules-loading

aisling-2 commented 2 years ago

Hi @jcayzac , have you tried the suggestion from fibo above? We currently don't have an estimation to work on this, so just checking if it would be a workaround for you.

fibo commented 2 years ago

@aisling-2 also Deno announced they are going to support (in the next three months) npm packages out or the box.

The syntax will be something like

import binance from 'npm:@binance/connector';