All apps/np

np

np

A better npm publish.

Runs as np|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 13 fields

Interactive npm publish with version bump, tests and git tag. Only flags in the completion data are offered.

Opens the form; the finished command lands at your prompt, unrun
otty gui np
Publish packageExample values, fixed in this page — nothing here reaches a terminal
Basic
Version or bump
string
Dist-tag
string
TasksEach one presets the form for one job
Preview release
versiontag
Release
versiontagbranchno_tests
ParametersOnly these flags are editable in the form
Version or bump
string · positional 0
patchminormajor
Dist-tag
string
--tag
Release branch
string
--branch
Any branch
boolean
--any-branch
Skip tests
boolean
--no-tests
Skip cleanup
boolean
--no-cleanup
Skip publishing
boolean
--no-publish
Preview tasks only
boolean
--preview
Subdirectory to publish
path
--contents
Version commit message
string
--message
Skip GitHub release draft
boolean
--no-release-draft
Do not enable 2FA on new packages
boolean
--no-2fa
Test script name
string
--test-script
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed np against its version. A form that does not match your version is not offered.