Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Convert a remote WADL file into a JSON equivalent. See the swagger spec for further information about the format of the JSON returned.
See rbelouin/wadl-client for generating a javascript client from a swagger json file.
You can parse a WADL string, a WADL file, or a remote WADL file:
var wadl2json = require("wadl2json");
var options = {
sort: false, // set it to true if you want to sort operations and verbs in the alphabetical order
stringify: false, // set it to true if you want to get a string instead of an object
prettify: 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.fromString("<wadl content>", options);
var swaggerFromFile = wadl2json.fromFile("./wadl-content.wadl", options);
var swaggerFromURL = wadl2json.fromURL("http://example.com/application.wadl", options);
Please install node and npm on your system. Then:
npm install
npm test
FAQs
Convert WADL strings, objects and files to JSON.
The npm package wadl2json receives a total of 2 weekly downloads. As such, wadl2json popularity was classified as not popular.
We found that wadl2json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.