esrua
v0.2.1
Published
run function in script with esbuild
Downloads
57
Maintainers
Readme
esrua
run function in script
usage
pnpm add esrua -g
features
if index.ts
contain
export const welcome = (msg: string) => {
console.log(`hello ${msg}`)
}
run esrua welcome -p world
, also specify filepath is available, e.g. esrua <filepath> welcome -p world
options
--help
- list all exported function, e.g.esura --help
-p
- function params, e.g.esrua welcome -p world
for type=module
package:
change esrua
to esmrua
development
- Setup -
pnpm i
- Build -
pnpm build
built with ❤️ by 😼