binance-connector-node icon indicating copy to clipboard operation
binance-connector-node copied to clipboard

Feature request: Publish as ESM (to support Deno)

Open jcayzac opened this issue 2 years ago • 4 comments

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

jcayzac avatar Mar 29 '22 09:03 jcayzac

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

reference here: https://deno.land/[email protected]/node/README.md#commonjs-modules-loading

fibo avatar May 22 '22 09:05 fibo

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.

aisling-2 avatar Sep 10 '22 14:09 aisling-2

@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';

fibo avatar Sep 10 '22 17:09 fibo