wynd — 6/16/2022, 10:10:09 PM

Edit: alright ECMAScript Modules it is :D

should my library be common js or a module (this is gonna be an npm package)

aka should it beconst { Client } = require('libraryname')

or import { Client } from 'libraryname'

♥ 3 ↩ 0 💬 7 comments

comments

micahlt:

There's literally no reason to do commonJS at this point - please use ESM.

6/16/2022, 10:15:55 PM
wynd:

Fair enough, I was leaning towards that because top level await™

6/16/2022, 10:18:18 PM
micahlt:

Heck yeah, we love promises

6/17/2022, 1:58:37 AM
wynd:

Oh yeah, speaking of promises, this is entirely promise based 🎉

6/17/2022, 10:06:31 AM
micahlt:

let’s g o

6/17/2022, 2:22:25 PM
wynd:

Post class coming soon :D

6/17/2022, 2:26:38 PM
oren:

this

6/16/2022, 10:25:09 PM