@ralumier/ohn v0.2.4
ohn
Opinionated Helper for Node
Templates
make <template>--> make template--data | -d <json>- pre-set data--yes| -y- use confirmationDefaults=true--no | -n- use confirmationDefaults=false--auto | -a- automatically accept defaults--confirm | -c- confirm before execution(@|---|.)<name>=<value>- sets value in data
Git
git init--> initialize a git repositorygit set name--> configure namegit set email--> configure emailgit fetch [<remote>]--> fetchgit pull [<remote>]--> pull (download)git push [<remote>]--> push (upload)git all--> adds all at rootgit commit [all] [push] <message> [<remote>]--> commits allgit revert [<#number=1>]--> rollback #number commits (git reset current~#)git tag new [push] <tag> <message> [<remote>]--> creates annotated tag and pushgit tag delete <tag>--> delete tag locallygit tag push <tag> [<remote>]--> pushes taggit tags push [<remote>]--> pushes tagsgit tags--> shows tag listgit branch show--> show current branchgit branch list--> show branchesgit branch to <name>--> checkout existing branchgit branch new [push] <name> [<remote>]--> checkout new branch (push upstream)git branch push [<remote>]--> push current branch upstreamgit branch delete [local] [remote] <name> [<remote>]--> delete local branchgit merge <branch>--> merges branch into currentgit ff <branch>--> fast forward merges branch into currentgit log [#number]--> log #number messagegit tree--> show git treegit root--> show git root
Npm
npm ls--> list packagesnpm [from ${package}] add [install] ${item}...--> add dependenciesnpm [from ${package}] dev [install] ${item}...--> add dev dependenciesnpm [from ${package}] rem ${item}...--> remove dependenciesnpm [from ${package}] deps--> list dependenciesnpm [from ${package}] path--> outputs pathnpm [from ${package}] dir--> outputs dirnpm [from ${package}] version [type]--> bumps npm versionnpm [from ${package}] run ${script} ${arg}...--> run a scriptnpm [from ${package}] exec ${bin} ${arg}...--> like npxnpm [from ${package}] <script>--> Run npm scriptnpm bin as ${alias} ${file}--> creates a binnpm sub as ${alias} ${file}--> creates a submodule