This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PKG=package.json | |
DIR=npm-audit-tmp | |
mkdir $DIR && cd $DIR && [[ $* == *--dry-run* && -f "../$PKG" ]] && cp "../$PKG" $PKG || echo '{}' >$PKG && npm i $1 --no-audit --package-lock-only --silent; npm audit; cd ../ && rm -rf $DIR | |
# Installation: | |
# 1. copy this into a file: /usr/local/bin/npm-audit | |
# 2. make it executable: chmod +x /usr/local/bin/npm-audit | |
# Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"prepublish" : "[[ $(npm view $npm_package_name@$npm_package_version --silent) ]] && echo \"error: $npm_package_name@$npm_package_version exists already!\" && exit 1 || echo \"successful check: $npm_package_name@$npm_package_version does not exist already\"" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/ISSUE_TEMPLATE/bug.yml | |
# A basic bug template... | |
# NOTE: `id` must be set for the `version` & correspond to... | |
# whatever the value you reference later when you parse an issue | |
name: Bug w/ Input | |
description: Something bad happened | |
labels: [bug] | |
body: | |
- type: input |
OlderNewer