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

termts

v0.1.4

Published

termts is a collection that contains tiny and useful terminal script tools

Downloads

3

Readme

termts is a collection that contains tiny and useful terminal script termts

node version need >= 14

English | 简体中文

install

# npm
npm install -g
# yarn
yarn install termts -g
# pnpm
pnpm add termts -g

uses

tips: now(version > 0.0.9), you can use tt or termts to trigger commands

termts banner <bannerUrl> [path] [title] [align] [size]
Append a banner to the top of the markdown file.

  • path the path of README.md file. if there is no path parameter, the README.md file will be searched for in the current execution directory.
  • title will render title if passed
  • align supports center, left and right
  • size the width of banner image. default is 320px
termts banner https://picsum.photos/987/496 --path=./yourpath/README.md --title="banner" --align=left --size=100%

example:
origin README.md

# Demo

after:

<div align="left">
    <img src="https://picsum.photos/987/496" style="width: 100%" alt="banner" />
    <h1>banner</h1>
  </div>
  
# Demo

preview

termts version
update version field of package interactively in the current directory

demo

termts commit [lang=zh|en]
shortcut of git commit -m. support Chinese(--lang=zh) and English(--lang=en). Default is zh

demo use --lang param to set language, default is Chinese

demo

termts tree [dir] [deep] [ignore]
output the tree structure of the specified directory

  • dir the target directory. default is current working directory
  • deep the depth of the catalogue. default is 1
  • ignore ignored first level list. default is node_modules and .git
termts tree --dir=./termts --deep=2 --ignore lib

above will output the tree structure of termts project without lib directory

demo

termts ls
display the contents of the current directory. like ls in linux
tips: more suitable for window systems requiring tiled output

demo

termts repo
open the repository of current project on your default browser

termts license
generate the license file interactively in the current path

termts-license

termts len <string>
output the length of the specified string

termts len abcd
// 4

termts len "hello world"
// 11