Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hardillb/node-red-module-parser


https://github.com/hardillb/node-red-module-parser

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# node-red-module-parser

## Install

```shell
npm install node-red-module-parser
```

## Useage

```javascript
const nodeRedModule = require('node-red-module-parser')

let moduleInfo = nodeRedModule.examinModule('/path/to/module/dir')
let moduleInto = nodeRedModule.examinTar('/path/to/tar/file','/path/to/temp/dir/location')
```

Where the module dir is the directory that holds the `package.json` file for the node, or the tgz file is the output of `npm pack` or the packaged module downloaded from a npm repository.

`moduleInfo` is an augmented `package.json` with details of the node types, default values and icon information.s