5min chapter

Changelog Master Feed cover image

Making "safe npm" (JS Party #272)

Changelog Master Feed

CHAPTER

How to Write a Wrapper Script That Will Invoke NPM in Dry Run Mode

NPM has a dry run mode built by default, but it doesn't provide enough information for you to have a good user experience. So we wrote a wrapper script that rips out a piece of npm and replaces it with our dry run wrapper. This was actually fairly pleasant to write compared to some other ecosystems or package managers. It's very lucky that node is still writing common JS.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode