{"_id":"@autocodingsystems/mqtt-stdin-publish","_rev":"4-4f983e319292e34f5f47aba92ca4ea42","name":"@autocodingsystems/mqtt-stdin-publish","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@autocodingsystems/mqtt-stdin-publish","version":"1.0.0","description":"Publish messages from std-in to an mqtt endpoint","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["mqtt","stdin","commandline","publish","topic"],"author":{"name":"AutoCoding Systems Ltd"},"license":"ISC","dependencies":{"async-mqtt":"^1.0.1","minimist":"^1.2.0","split":"^1.0.1"},"gitHead":"ed457b57c2d9b052b578086bee35a92daeea24b8","_id":"@autocodingsystems/mqtt-stdin-publish@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"autocodingadmin","email":"jimtupper@autocodingsystems.com"},"dist":{"integrity":"sha512-xQdjHkR//uB65QhXkJZJZ8wsZR+Ac8Q/Q9wXIpegtti6CY0Cy1MgyrwKOQaOjI8T/2hjsK5/BgATDd91axm3eA==","shasum":"2fe67d8ecb6fc16190fe8cf089a544d37ef697f1","tarball":"https://registry.npmjs.org/@autocodingsystems/mqtt-stdin-publish/-/mqtt-stdin-publish-1.0.0.tgz","fileCount":3,"unpackedSize":2771,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCX1f2Z6ANiiz/En7NuY/EDJWZubotyZjwDblbD5u/9AwIgbRtV20PjvE+IPkzx8smHyridDlgmlB87DJ8U06ApySI="}]},"maintainers":[{"name":"autocodingadmin","email":"jimtupper@autocodingsystems.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mqtt-stdin-publish_1.0.0_1521474565660_0.6754356907241705"},"_hasShrinkwrap":false},"1.0.1":{"name":"@autocodingsystems/mqtt-stdin-publish","version":"1.0.1","description":"Publish messages from std-in to an mqtt endpoint","main":"index.js","bin":{"mqtt-stdin-publish":"./index.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["mqtt","stdin","commandline","publish","topic"],"author":{"name":"AutoCoding Systems Ltd"},"license":"ISC","dependencies":{"async-mqtt":"^1.0.1","minimist":"^1.2.0","split":"^1.0.1"},"gitHead":"ed457b57c2d9b052b578086bee35a92daeea24b8","_id":"@autocodingsystems/mqtt-stdin-publish@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"autocodingadmin","email":"jimtupper@autocodingsystems.com"},"dist":{"integrity":"sha512-Eg5KW6B4hRc+KgpdPXS0X61nFpr6JcNPnOlYNgy94pEY7L9UaqY+tjxgnvfyYh7vPJc/oojk6Kozmt7C4W1hCg==","shasum":"9d6e0f0a6002cbcbca5c6ed9838d4c41df73347f","tarball":"https://registry.npmjs.org/@autocodingsystems/mqtt-stdin-publish/-/mqtt-stdin-publish-1.0.1.tgz","fileCount":3,"unpackedSize":2826,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK2EQ/NikBtG2eSaLWKpO/txSeocXZQDQVMlXF+7fGvwIgHRtUn/mINSnnEouLi+LJdIvFkybDTGUXqyQCTYhfmZc="}]},"maintainers":[{"name":"autocodingadmin","email":"jimtupper@autocodingsystems.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mqtt-stdin-publish_1.0.1_1521474878606_0.6678916978257385"},"_hasShrinkwrap":false},"1.0.2":{"name":"@autocodingsystems/mqtt-stdin-publish","version":"1.0.2","description":"Publish messages from std-in to an mqtt endpoint","main":"index.js","bin":{"mqtt-stdin-publish":"./index.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["mqtt","stdin","commandline","publish","topic"],"author":{"name":"AutoCoding Systems Ltd"},"license":"ISC","dependencies":{"async-mqtt":"^1.0.1","minimist":"^1.2.0","split":"^1.0.1"},"gitHead":"ed457b57c2d9b052b578086bee35a92daeea24b8","_id":"@autocodingsystems/mqtt-stdin-publish@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"autocodingadmin","email":"jimtupper@autocodingsystems.com"},"dist":{"integrity":"sha512-phKFyIIM9Ok87N3vHc+miiLAAQVVPQcVfPhcsnR7qs/yC9G2zqTELQM/4YikI8PmY4pIb9KRsRN6K8AJ4JoSMg==","shasum":"acc3c8fc3fe010ff7d6059ec371fe427c2d0ebeb","tarball":"https://registry.npmjs.org/@autocodingsystems/mqtt-stdin-publish/-/mqtt-stdin-publish-1.0.2.tgz","fileCount":3,"unpackedSize":2849,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUVAbUF4Uq2ad9YOg8Fp2YTem3gSuCB1WGAZ2B7EqfxgIhANu9IPHnsv5jJCHWKIpfnlHJZDuCp0NPCnNQZexTaWb7"}]},"maintainers":[{"name":"autocodingadmin","email":"jimtupper@autocodingsystems.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mqtt-stdin-publish_1.0.2_1521475260208_0.3284320884799732"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-19T15:49:25.609Z","1.0.0":"2018-03-19T15:49:25.816Z","modified":"2022-04-04T16:35:50.863Z","1.0.1":"2018-03-19T15:54:38.681Z","1.0.2":"2018-03-19T16:01:00.243Z"},"maintainers":[{"name":"autocodingadmin","email":"jimtupper@autocodingsystems.com"}],"description":"Publish messages from std-in to an mqtt endpoint","keywords":["mqtt","stdin","commandline","publish","topic"],"author":{"name":"AutoCoding Systems Ltd"},"license":"ISC","readme":"# Publish data from std in to an MQTT topic\r\n\r\n## Quickstart\r\n```bash\r\ncat to-publish.txt | npx @autocodingsystems/mqtt-stdin-publish -h <host> -t <topic>\r\n```\r\n\r\n## Description\r\n\r\nThis is a tiny commandlet that reads in data from the std-in, one line at a time, and pushes that data to an MQTT topic.\r\nIt's really meant for quick tests on windows as no authentication is supported on the MQTT broker (except what can be done through the url).\r\n\r\nIt is roughly equivalent to the following bash script:\r\n\r\n```bash\r\ncat to-publish.txt | xargs -d '\\n' -i mosquitto_pub -h broker -t topic -m {}\r\n```\r\n\r\nIt's a little more efficient as the connection is only opened once and kept open.\r\n\r\nIt doesn't support all the options of `mosquitto_pub`.\r\n\r\n## Commandline Options\r\n\r\n```\r\n    --url: The url of an MQTT broker to connect to\r\n    --host, -h: The hostname of an MQTT broker to connect to (if not using url)\r\n    --port, -p: The port of an MQTT broker to connect to )(if not using url)\r\n    --topic, -t: The topic to publish messages to\r\n```\r\n\r\n","readmeFilename":"README.md"}