Skip to content

Instantly share code, notes, and snippets.

View Shubhamnegi's full-sized avatar
🏠
Working from home

Shubham Negi Shubhamnegi

🏠
Working from home
  • Limetray
  • gurgaon
View GitHub Profile
@rsp
rsp / node-ts-hello-adventures.md
Last active April 30, 2024 20:53
Creating and using a Node library with TypeScript

node-ts-hello adventures

This is what I was really doing while creating an example from this answer on Stack Overflow:

It turned out that I made several stupid mistakes and wasted a lot more time than it might look like from reading the answer. I eventually removed from the answer not so much out of embarrassment but because I didn't want to be accused that I am complicating the process on purpose to make Deno look better in comparison. The truth is that below ius exactly what I did while trying to create and publish a new module on npm written in TypeScript and use it with ts-node later:

https://github.com/rsp/node-ts-hello