npm

Posts: 5

Commit secrets to Git (encrypted)

As part of the covid-19 extra free time, i'm learning gcloud and terraform. My first experiment was to deploy a simple docker file to cloud run service, and to set custom domain. When I got the results needed, I wanted to commit the files to Github, but I've found out…

Export Swagger documentation file from AWS ApiGateway

When developing serverless function over aws lambda, it is very useful to export the documentation as a swagger file, and create api documentation to your api. to make the process easily accessed i created npm module apigateway-export-tool that does exactly that. npx apigateway-export-tool list npx apigateway-export-tool docs -i [api-id] --stageName…

Bootstrap your next project with npm init

With latest npm versions you can trigger npx with npm init. Try it out with: npm init react-app Basically behind the scene npm init will run npx create-react-app Base on that knowledge, let's create a bootstrapper package and deploy it to the npm registry. The bootstrapper I decided to create…

How my example npm package got 9.5k+ downloads.

In a previous blog post i explained how to start with creating an npm package i decided to go with a real world example and created a tracking number validation. As a developer working in an ecommerce startup (shelfmint) the pain was recognized and the solution was known. The package…