0.15.0 • Published 3 years ago

@cnole/esmo v0.15.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago
  • esno - Node in CJS mode - by esbuild-register
  • esmo - Node in ESM mode - by esbuild-node-loader

Usage

npx esno hello.ts

# use with `type: module`
npx esmo hello.ts

Install globally

npm i -g esno

esno index.ts
esmo index.ts

Install as dependency

npm i esno
{
  "scripts": {
    "start": "esno index.ts"
  },
  "dependencies": {
    "esno": "*"
  }
}
npm run start
{
  "type": "module",
  "scripts": {
    "start": "esmo index.ts"
  },
  "dependencies": {
    "esno": "*"
  }
}