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 🙏

© 2025 – Pkg Stats / Ryan Hefner

opniz-cli

v0.5.3

Published

opniz CLIは[opniz Arduino Library](https://github.com/miso-develop/opniz-arduino-m5atom)の[Basicスケッチ](https://github.com/miso-develop/opniz-arduino-m5atom/blob/main/examples/Basic/Basic.ino)を、コマンドから簡単に書き込めるCLIツールです。 [Arduino CLI](https://github.com/arduin

Downloads

43

Readme

opniz CLI

opniz CLIはopniz Arduino LibraryBasicスケッチを、コマンドから簡単に書き込めるCLIツールです。
Arduino CLIのラッパーCLIです。

対応デバイス

  • M5Stack BASIC
  • M5Stack Core2
  • M5StickC
  • M5ATOM Matrix
  • M5ATOM Lite
  • M5ATOM Echo
  • M5ATOM U
  • M5ATOMS3
  • M5ATOMS3 Lite
  • M5Stamp Pico
  • M5Stamp S3
  • その他ESP32、ESP32-PICO-D4、ESP32-S3デバイス

インストール

$ npm install -g opniz-cli

インストール時に~/.opniz-cli/Arduino CLIの環境をセットアップします。
そのためインストールに数分かかり、約800MBほどストレージを消費します。

使い方

$ opniz -h
Usage: index [options] [command]

Options:
  -v, --version                   バージョンを表示します。
  -h, --help                      コマンドのヘルプを表示します。

Commands:
  upload [options] [device-port]  デバイスへopnizを書き込みます。
  monitor [device-port]           シリアルモニタを表示します。
  list                            接続されているデバイス情報を表示します。
  arduino ["options"]             Arduino CLIを直接実行します。[options]をダブルクォーテーションで括って実行してください。(例:opniz arduino "version")
  help [command]                  display help for command

upload: opnizスケッチ書き込み

デバイスへopnizスケッチを書き込みます。

デバイスのシリアルポートやWi-Fi情報、opnizプログラムを実行するマシンのIPアドレスといった情報を対話モードで入力していきます。
シリアルポート、Wi-FiのSSID、IPアドレスの候補は動的にリスト生成されるので簡単に選択できます。

opniz upload

リストにない値を指定したい場合はOtherを選択することで直接入力できます。

また以下のようにオプション指定することで対話モードをスキップして実行できます。
部分的なオプション指定も可能です。

opniz upload <device-port> -s <ssid> -p <password> -a <address> -d <device> -P 3000

|オプション|必須|内容| |---|:-:|---| |<device-port>|✔|デバイスのシリアルポートを指定します。| |-s, --ssid <ssid>|✔|デバイスを接続するWi-FiのSSIDを指定します。| |-p, --password <password>|✔|デバイスを接続するWi-Fiのパスワードを指定します。| |-a, --address <address>|✔|opnizプログラム実行マシンのIPアドレスまたはホスト名、ドメイン名を指定します。| |-d, --device <device>|✔|デバイスを指定します。m5atomm5stickcm5stackesp32のいずれかを指定します。| |-P, --port <port>|✔|opnizプログラムの通信ポート番号を指定します。| |-i, --id <id>||opniz IDを指定します。| |-h, --help||コマンドのヘルプを表示します。|

monitor: シリアルモニタ

デバイスのSerial.printを出力します。

<device-port>にデバイスのシリアルポートを指定して実行します。

opniz monitor <device-port>

list: ボードリスト表示

デバイスをPCへ接続した状態で実行するとボード情報(port等)が表示されます。

$ opniz list
シリアルポート Protocol タイプ               Board Name      FQBN                       Core
COM1          serial   Serial Port         Unknown
COM2          serial   Serial Port (USB)   Unknown
COM3          serial   Serial Port (USB)   TAMC Termod S3  esp32:esp32:tamc_termod_s3 esp32:esp32

arduino: Arduino CLI直接実行

Arduino CLIを直接実行します。
Arduino CLIコマンドをダブルクォーテーションで括って実行します。

opniz arduino "<arduino-cli command>"
// example
$ opniz arduino "version"
$ opniz arduino "lib list"

関連リポジトリ

ライセンス

MIT