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

dingtalk-robot-cli

v1.0.3

Published

easy use to sending message to dingtalk in one line command

Downloads

10

Readme

DINGTALK-ROBOT-CLI

A command line tools for easy using dingtalk robot

Install

npm install -g dingtalk-robot-cli
# or
yarn global add dingtalk-robot-cli
# or without installation, just use npx
# npx dingtalk-robot-cli <cmd>

Usage

You should first set access token by setting env or pass through an option

dingtalk-robot-cli -t 'access_token' <cmd>
# OR
DT_ROBOT_TOKEN='access_token' dingtalk-robot-cli <cmd>

global options

  • -t --token [token] your dingtalk robot access token
  • -q --quiet if sending message fail, the process will not exit with code 1
  • --at pass in a list of mobile numbers, formatted by mobile1,mobile2
  • --isAtAll if at all people

message

send simple message

dingtalk-robot-cli message 'hello'

link

send link message

dingtalk-robot-cli link 'http://baidu.com' --content 'link content text' --title 'link title' --pic 'some image url'

markdown

send markdown message

dingtalk-robot-cli markdown '## some markdown content' --title 'message title'

actionCard

send actionCard message

# single button
dingtalk-robot-cli actionCard '## some actionCard content' --title 'actionCard title' --hideAvatar --btnOrientation --singleTitle 'gobaidu' --singleURL 'http://baidu.com'


# multiple button
dingtalk-robot-cli actionCard '## some actionCard content' --title 'actionCard title' --hideAvatar --btnOrientation --btns 'gobaidu;http://baidu.com' --btns 'gogoogle;http://google.com'

feedCard

send feedCard message

dingtalk-robot-cli feedCard 'GoBaidu;http://baidu.com;http://baidu.com/logo.png' 'GoGoogle;http://google.com;http://google.com/logo.png'

Docker

docker run --rm zephyrdev/dingtalk-robot-cli <CMD>