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

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

Awesome Lists containing this project

README

          

# Value Filter operator

[![Build Status](https://travis-ci.org/Wirecloud/value-filter-operator.svg?branch=develop)](https://travis-ci.org/Wirecloud/value-filter-operator)
[![Coverage Status](https://coveralls.io/repos/github/Wirecloud/value-filter-operator/badge.svg?branch=develop)](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.