0.0.3 • Published 4 years ago
@btwiuse/ts-node-lib v0.0.3
ts-node-shebang
This is a template project that demonstrates how to distribute executable TypeScript snippets on npmjs.org without compilation to JavaScript, thanks to the ts-node shebang line:
#/usr/bin/env ts-nodeHow to use
- fork this project or click Use this template,
- replace
index.tsetc. with your own script, - and rename this project to something else other than
@btwiuse/ts-node-shebang, - then run
yarn publishto publish it.
So other people can easily install your script,
$ npm install -g ts-node @btwiuse/ts-node-shebangand run it:
$ ts-node-shebang