open-index/open-npm huggingface dataset:
npm package: @omidteimoori/node-red-data-generator
Description: A customizable Node-RED node to simulate various data patterns including sinusoidal, random, rising, falling, square, triangle, and sawtooth. Ideal for testing and prototyping dashboards, PLC interfaces, and IoT flows.
Author: Omid Teimoori
Latest version: 1.0.0

# @omidteimoori/node-red-data-generator

A custom Node-RED node to simulate various data types such as **sinusoidal**, **random**, **rising**, **falling**, **square**, **triangle**, and **sawtooth** values. Ideal for testing dashboards, signal processing, OPC UA mockups, or edge device emulation.

## Features

- Outputs data automatically after deployment (no trigger required)
- Supports:
  - Sinusoidal wave
  - Random values
  - Rising ramp
  - Falling ramp
  - Square wave
  - Triangle wave
  - Sawtooth wave
- Customizable:
  - Frequency (ms)
  - Minimum and maximum values
  - Step size
- Sets `msg.payload` to the generated value and `msg.topic` to the selected data type

## Installation

You can link it locally while developing:

```bash
cd ~/.node-red
npm install @omidteimoori/node-red-data-generator
```

## Usage

1. Open the Node-RED editor
2. Drag the **Data Generator** node from the "function" category
3. Configure the following options:
   - Type: Select waveform (sinusoidal, square, etc.)
   - Frequency: Output rate in milliseconds
   - Min/Max: Value range
   - Step: Precision or ramp size


## Author

Developed by [Omid Teimoori](https://omidteimoori.com)  
MIT License

## Related

- [Node-RED](https://nodered.org/)
- [Other Projects](https://omidteimoori.com/projects.html)
npm package: @ominestre/config-reader
Description: Node module for reading JSON or YAML config and returning a Plain Ol' JavaScript Object.
Author: ominestre
Latest version: 1.0.0

# Config Reader

[![Build Status](https://travis-ci.org/ominestre/config-reader.svg?branch=master)](https://travis-ci.org/ominestre/config-reader)

Node module for reading JSON or YAML config and returning a Plain Ol' JavaScript Object.

## Contributing

Reference [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute to this project.

## Usage

### configReader.getConfig( String )

```javascript
const configReader = require('@ominestre/config-reader');
const config = configReader.getConfig('/path/to/my/config.json');
```

The string should preferrably be an absolute path to your configuration file. This module will attempt to resolve a relative path to your current working directory but that should be considered volatile.

It will throw an exception if you point to a file that isn't of extension `.json`, `.yml`, or `.yaml`. It will also throw an exception if your path can't be resolved or if the file can't be read.