Giter Site home page Giter Site logo

executor-parse-xml-json's Introduction

Smart Processes Management

NPM version Downloads Dependency Status code style: prettier

XML/JSON Parser executor for Runnerty:

Installation:

Through NPM

npm i @runnerty/executor-parse-xml-json

You can also add modules to your project with runnerty-cli

npx runnerty-cli add @runnerty/executor-parse-xml-json

This command installs the module in your project, adds example configuration in your config.json and creates an example plan of use.

If you have installed runnerty-cli globally you can include the module with this command:

rty add @runnerty/executor-parse-xml-json

Configuration sample:

{
  "id": "parse-xml-json_default",
  "type": "@runnerty-executor-parse-xml-json"
}

Plan sample:

{
  "id": "parse-xml-json_default",
  "to": "xml",
  "json": {
    "title": "Hello world",
    "description": "Example for XML/JSON parser executor"
  }
}
{
  "id": "parse-xml-json_default",
  "to": "json",
  "xml": "<?xml version='1.0' encoding='UTF-8' standalone='yes'?><root><title>Hello world</title><description>Example for XML/JSON parser executor</description></root>"
}

Plan sample using input files:

{
  "id": "parse-xml-json_default",
  "to": "xml",
  "json_file": "./test/sample.json"
}
{
  "id": "parse-xml-json_default",
  "to": "json",
  "xml_file": "./test/sample.xml"
}

Plan sample using output file:

{
  "id": "parse-xml-json_default",
  "to": "json",
  "xml_file": "./test/sample.xml",
  "output_file": "./test/output.json"
}

Plan sample using options object for json:

{
  "id": "parse-xml-json_default",
  "to": "json",
  "xml_file": "./test/sample.xml",
  "output_file": "./test/output.json",
  "json_options": {
    "attrkey": "attribute",
    "charkey": "value"
  }
}

Plan sample using options object for xml:

{
  "id": "parse-xml-json_default",
  "to": "xml",
  "json_file": "./test/sample.json",
  "output_file": "./test/output.xml",
  "xml_options": {
    "headless": true,
    "cdata": true
  }
}

Options definitions for json_options and xml_options params can be found here:

executor-parse-xml-json's People

Contributors

dvictorjhg avatar carloscarmona avatar antoniogenaro avatar pakitovic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.