Package Exports
- httpsnippet-client-api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (httpsnippet-client-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
httpsnippet-client-api
An HTTP Snippet client for generating snippets for the api module.
Installation
npm install --save httpsnippet-client-api
⚠️ Please note that this package is currently only compatile with the ReadMe fork of httpsnippet. Once PR #165 is accepted into
httpsnippet
to pull in the new plugin architecture we've proposed, this package will function with the mainline package.
Usage
const httpsnippet = require('httpsnippet');
const client = require('httpsnippet-client-api');
HTTPSnippet.addTargetClient('node', client);
const snippet = new HTTPSnippet(harObject);
console.log(
snippet.convert('node', 'api', {
apiDefinitionPath: 'https://example.com/openapi.json'
})
);