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-node
How to use
- fork this project or click Use this template,
- replace
index.ts
etc. with your own script, - and rename this project to something else other than
@btwiuse/ts-node-shebang
, - then run
yarn publish
to publish it.
So other people can easily install your script,
$ npm install -g ts-node @btwiuse/ts-node-shebang
and run it:
$ ts-node-shebang