https://github.com/wirecloud/value-filter-operator
Operator that filters a JSON input and outputs part of its data, as addressed in an object-oriented syntax property
https://github.com/wirecloud/value-filter-operator
fiware-wirecloud wirecloud-component wirecloud-operator
Last synced: 17 days ago
JSON representation
Operator that filters a JSON input and outputs part of its data, as addressed in an object-oriented syntax property
- Host: GitHub
- URL: https://github.com/wirecloud/value-filter-operator
- Owner: Wirecloud
- License: mit
- Created: 2018-01-24T16:12:11.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2018-11-06T11:25:17.000Z (over 7 years ago)
- Last Synced: 2025-10-29T15:52:08.670Z (9 months ago)
- Topics: fiware-wirecloud, wirecloud-component, wirecloud-operator
- Language: JavaScript
- Size: 101 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# Value Filter operator
[](https://travis-ci.org/Wirecloud/value-filter-operator)
[](https://coveralls.io/github/Wirecloud/value-filter-operator?branch=develop)
The Value Filter operator is a WireCloud operator that provides a simple mechanism of filtering a JSON data structure, produced by an output endpoint, and extracts a single data inside such structure. The path to the extracted data is indicated through a preference in a dot-sepparated syntax.
## Build dependencies
Be sure to have installed [Node.js](https://nodejs.org/) in your system. For example, you can install it on Ubuntu and Debian running the following commands:
```bash
sudo apt update; sudo apt install curl gnupg
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt install nodejs npm
```
You also have to install the [Grunt](https://gruntjs.com/)'s command line interface (CLI):
```bash
sudo npm install -g grunt-cli
```
The remaining dependencies are installed using npm (you have to run this command
inside the folder where you downloaded this repository):
```bash
npm install
```
## Build
Once installed all the build dependencies you can build this operator by using grunt:
```bash
grunt
```
If everything goes well, you will find a wgt file in the `dist` folder.
## Documentation
Documentation about how to use this operator is available on the
[User Guide](src/doc/userguide.md). Anyway, you can find general information
about how to use operators on the
[WireCloud's User Guide](https://wirecloud.readthedocs.io/en/stable/user_guide/)
available on Read the Docs.
## Copyright and License
Copyright (c) 2018 CoNWeT Lab., Universidad Politecnica de Madrid
Licensed under the MIT license.