Bootstrap your next project with npm init

Search for a command to run...

No comments yet. Be the first to comment.
We use MongoDB at Snappy, and we repeatedly create new migration scripts or scripts that export data, sometime different developers will create very similar scripts, so one weekend I decided to create a tool, we all can use to prototype our MongoDB q...
Your team has 14 versions of the same code review skill across 5 repos, with no way to sync them. when one improves, the others don't. drop a folder in .claude/skills/ and pray nothing drifts. source

AI agents are unreasonably good at writing SQL. They get specific error messages, fix their own mistakes in one retry, and can introspect query performance with EXPLAIN ANALYZE before you even ask. No

n8n has over 400 integrations. Zapier claims 7,000+. Every single one was hand-built, tested against a moving API, and will eventually break when that API ships a v2. The entire workflow automation in

Part of the "Your Next Startup" series, where I break down startup ideas I think are worth building. Auth0 sold for \(6.5B. Okta is worth \)15B+. CyberArk, Delinea, BeyondTrust, all printing money fro

For as long as software has existed, we've been building two doors into our systems. Door one: the UI, a carefully designed surface where humans point, click, and occasionally rage-quit. Door two: the

With the 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
Based on that knowledge, let’s create a bootstrapper package and deploy it to the npm registry.
The bootstrapper I decided to create is for open-source projects.
Features:
Run git init
Create license file
Create git ignore file
Create CODE_OF_CONDUCT.md
Run npm init -y
Add initial git commit.
The code: ( github)
Let’s pick a name for our package, we learned we need to prefix the name with create- and we are going to create package for open source project so the obvious name is going to be create-open-source.
For those who didn’t try to publish packages to the npm registry, you should sign up on npmjs.com and try npm publish in your project folder, make sure the name is unique.
Now let’s try it out:
mkdir new-project
cd new-project
npm init open-source
Originally published at https://niradler.com on April 16, 2019.