npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@iwan.aucamp/typescript.template

v1.0.0-SNAPSHOT.20190711193844

Published

typescript template

Downloads

9

Readme

typescript template

...

rsync -av --no-owner --no-group --no-times --checksum --no-perms --ignore-existing \
    --exclude='node_modules' --exclude='dist-*' \
    --exclude='.git' \
    ./ user/

find . \( -regex '^.*/.git$' \) -prune -o -type f -print \
    | xargs -n1 -t sed -E -n \
    -e 's|iwana([/.])template|xadix\1argparse_tree|gp' \
    -e 's|iwana|xadix|gp'

find . \( -regex '^.*/.git$' \) -prune -o -type f -print \
    | xargs -n1 -t sed -E -i \
    -e 's|iwana([/.])template|xadix\1argparse_tree|g' \
    -e 's|iwana|xadix|g'

diff -u -x '.*' -x '*.pyc' -x 'README.*' -x src -x test -x '*.egg-info' -r ./ user/
## upgrade devDependencies
jq -r '.devDependencies | keys | .[]' package.json | xargs npm install --save-dev
## upgrade dependencies
jq -r '.dependencies | keys | .[]' package.json | xargs npm install --save

## npm-check-updates
npm run ncu
npm run ncu -- --upgrade --interactive
npm run ncu -- --upgrade

npm update

node.js

  • https://docs.npmjs.com/files/package.json

  • https://docs.npmjs.com/misc/scripts

  • https://docs.npmjs.com/cli/run-script.html

  • https://docs.npmjs.com/cli/update

  • https://docs.npmjs.com/cli/outdated

  • https://docs.npmjs.com/cli/dist-tag

  • https://docs.npmjs.com/cli/version

  • https://semver.npmjs.com/

  • https://www.npmjs.com/package/semver

  • https://docs.npmjs.com/misc/semver

Tools

tslint

  • https://palantir.github.io/tslint/
  • https://www.npmjs.com/package/tslint
  • https://github.com/palantir/tslint

eslint

  • https://eslint.org/
  • https://www.npmjs.com/package/eslint
  • https://github.com/eslint/eslint

typedoc

  • https://typedoc.org/
  • https://www.npmjs.com/package/typedoc
  • https://github.com/TypeStrong/TypeDoc

jsdoc

  • https://devdocs.io/jsdoc/
  • https://www.npmjs.com/package/jsdoc
  • https://github.com/jsdoc/jsdoc

Tools

setup node.js

yum install https://rpm.nodesource.com/pub_10.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm
dnf install https://rpm.nodesource.com/pub_10.x/fc/29/x86_64/nodesource-release-fc29-1.noarch.rpm

In ~/.bash_profile

## nodejs:BEGIN
export NPM_PACKAGES="${HOME}/.npm-packages"
export PATH="${NPM_PACKAGES}/bin${PATH:+:${PATH}}"
export NODE_PATH="${NPM_PACKAGES}/lib/node_modules${NODE_PATH:+:${NODE_PATH}}"
export MANPATH="$NPM_PACKAGES/share/man:${MANPATH:-$(manpath)}"
## nodejs:END

In ~/.npmrc

prefix=~/.npm-packages
npm install -g typescript ts-node

npm --init
tsc --init

nodenv

git clone https://github.com/nodenv/nodenv.git ~/.nodenv
git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build
export PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init -)"
exec bash -l
nodenv install ...
nodenv global ...
which node
node --version

other

npm run xscripts -- -v -v -v run ftsf
npm run xscripts -- -v -v -v run build

npm install -g npm-check-updates

ncu
ncu --upgrade
ncu --upgrade --interactive
ncu --upgrade --semverLevel minor --loglevel verbose
ncu --upgrade --semverLevel major --loglevel verbose
npm login --registry=https://registry.npmjs.org/ [email protected] --always-auth
semver -i prerelease --preid alpha "$(jq -r .version package.json)"
npm version --preid=alpha prerelease && npm publish

semver -i prerelease --preid beta "$(jq -r .version package.json)"
npm version --preid=beta prerelease && npm publish
semver -i prerelease --preid rc "$(jq -r .version package.json)"
npm version --preid=rc prerelease && npm publish

semver -i preminor --preid beta "$(jq -r .version package.json)"
npm version --preid=beta preminor && npm publish
semver -i prerelease "$(jq -r .version package.json)"
npm --no-git-tag-version version "$(semver -i minor "$(jq -r .version package.json)")-SNAPSHOT.$(TZ=Etc/UTC date +%Y%m%d%H%M%S)"

refs

  • https://github.com/yargs/yargs/blob/master/docs/advanced.md
  • https://github.com/yargs/yargs/blob/master/docs/api.md
  • https://github.com/yargs/yargs/blob/master/docs/tricks.md
  • https://github.com/yargs/yargs/blob/master/docs/examples.md