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'

Jun 16, 2022, 10:10 PM
3 0 7

comments (single view)

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

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

Heck yeah, we love promises

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

let’s g o

Post class coming soon :D

View all comments