0.2.0 • Published 4 years ago
@easy-going/sh v0.2.0
esno- Node in CJS mode - by esbuild-registeresmo- Node in ESM mode - by esbuild-node-loader
Usage
npx esno hello.ts
# use with `type: module`
npx esmo hello.tsInstall globally
npm i -g esno
esno index.ts
esmo index.tsInstall as dependency
npm i esno{
"scripts": {
"start": "esno index.ts"
},
"dependencies": {
"esno": "*"
}
}npm run start{
"type": "module",
"scripts": {
"start": "esmo index.ts"
},
"dependencies": {
"esno": "*"
}
}0.2.0
4 years ago