Convert a remote WADL file into a JSON equivalent. See the swagger spec for further information about the format of the JSON returned.
How to use it
You can parse a WADL string, a WADL file, or a remote WADL file:
var wadl2json = ;var options =sort: false // set it to true if you want to sort operations and verbs in the alphabetical orderstringify: false // set it to true if you want to get a string instead of an objectprettify: false // set it to true if you want to get an indented string (stringify=true required)title: "Simple API" // the title of the API (required)description: "Simple API description" // the description of the API (required)version: "1.4.2" // the version of the API (required)blacklist: "/internal" // the path roots you want to blacklist;var swaggerFromString = wadl2json;var swaggerFromFile = wadl2json;var swaggerFromURL = wadl2json;
How to build
npm installnpm test