Skip to content
/ ts-node-shebang Public template

distribute executable TypeScript snippets on npmjs.org without compilation to JavaScript

License

Notifications You must be signed in to change notification settings

btwiuse/ts-node-shebang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-node-shebang

NPM version NPM downloads

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

  1. fork this project or click Use this template,
  2. replace index.ts etc. with your own script,
  3. rename this project to something else other than @btwiuse/ts-node-shebang,
  4. run yarn npm login to login to npm.
  5. run yarn publish to publish it.
  6. visit https://unpkg.com/browse/@btwiuse/ts-node-shebang/ to confirm your script/assets are included in the package.

So people can easily install your script,

$ npm install -g ts-node @btwiuse/ts-node-shebang

and run it:

$ btwiuse-ts-node-shebang

About

distribute executable TypeScript snippets on npmjs.org without compilation to JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages