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

platform-utilities

v1.0.4

Published

Boodskap IoT Platform developer utility module to export, import & populate data into the domain

Downloads

13

Readme

How to run the Platform Utilities?

> npm i platform-utilities -g

Boodskap Utils Command

> boodskap <ACTION> <API_URL> <DOMAIN_KEY> <API_KEY> <PATH> <TYPE> <PROTOCOL>

ACTION (case in-sensitive)

INFO (info) EXPORT (export) IMPORT (import) POPULATE (populate)

API_URL

Deployed platform api url

DOMAIN_KEY

Domain Key

API_KEY

API Key

PATH

Path argument mandatory for export, import & populate

TYPE (case in-sensitive)

MESSAGE (message) RECORD (record)

Note: TYPE is not mandatory for info,export,import & populate

PROTOCOL (case in-sensitive)

HTTP (http) MQTT (mqtt)

Note: PROTOCOL is not mandatory for info,export,import & populate. In default HTTP will be taken

How to print the domain info?

> boodskap info <API_URL> <DOMAIN_KEY> <API_KEY>

Example

> boodskap info https://xxxxxx/api XXXXXXXX xxxxxxx

How to export the domain rules & schema?

> boodskap export <API_URL> <DOMAIN_KEY> <API_KEY> <PATH>
Mandatory arguments,

API_URL DOMAIN_KEY API_KEY PATH

Example

> boodskap export https://xxxxxxx/api XXXXXXXX xxxxxxxx /export

How to import the domain rules & schema?

> boodskap import <API_URL> <DOMAIN_KEY> <API_KEY> <PATH>
Mandatory arguments,

API_URL DOMAIN_KEY API_KEY PATH

Example

> boodskap import https://xxxxxxx/api XXXXXXXX xxxxxxx /import

How to populate the data into records?

> boodskap populate <API_URL> <DOMAIN_KEY> <API_KEY> <PATH> <TYPE> <PROTOCOL>
Mandatory arguments,

API_URL DOMAIN_KEY API_KEY PATH TYPE (MESSAGE/RECORD)

if TYPE (MESSAGE) then next parameter will the PROTOCOL (HTTP/MQTT) in default HTTP post will trigger

Example

> boodskap populate https://xxxxxxx/api XXXXXXXX xxxxxxx /data RECORD
> boodskap populate https://xxxxxxx/api XXXXXXXX xxxxxxx /data MESSAGE
> boodskap populate https://xxxxxxx/api XXXXXXXX xxxxxxx /data MESSAGE HTTP
> boodskap populate https://xxxxxxx/api XXXXXXXX xxxxxxx /data MESSAGE MQTT

File Names

Inside the respective folder (Export, Import & Populate) save the rules in the below file names format,

Message Definition > messages.json
Record Definition > records.json
Domain Rule > domain_rule.json
Message Rule > message_rule.json
Named Rule > named_rule.json
Schedule Rule > schedule_rule.json
Binary Rule > binary_rule.json
Job Rule > job_rule.json
File Rule > file_rule.json
Process Rule > process_rule.json
SFTP Rule > sftp_rule.json
MQTT Rule > mqtt_rule.json
TCP Rule > tcp_rule.json
UDP Rule > udp_rule.json
Email Rule > email_rule.json
Micro API Rule > micro_api_rule.json

#To populate the data into records,
<RECORD_ID>.json
#example
1001.json
1002.json

#To populate the data into messages,

<MESSAGE_ID>.json
#example
1001.json
1002.json