< All Posts

Prepend TLS to URL

I recently published a NodeJS TypeScript package to NPM for my recent use case. To give a little background, I was on a project that stored domain names in a column on a table in Postgres. However most domain names did not have the URL scheme prefixed to them so jessegoodenough.com instead of https://jessegoodenough.com. As a result I created a nice helper function in TypeScript and fully unit tested with vitest. You can download the package here and view the source code here. Anyway I didn’t want to make this a tutorial style blog post so for more information please check out the readme and source code in the links to the package above. Thanks and hope you all benefit from the small OSS package.

Jesse Goodenough Mon May 08 2023