Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/node-red-module-parser
https://github.com/hardillb/node-red-module-parser
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hardillb/node-red-module-parser
- Owner: hardillb
- License: apache-2.0
- Created: 2021-12-19T22:16:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-22T23:04:08.000Z (over 1 year ago)
- Last Synced: 2024-10-14T16:11:41.501Z (3 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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