Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

termts

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

termts

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

  • 0.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source
banner

termts

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

Keywords

FAQs

Package last updated on 20 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc