This package has been deprecated

Author message:

the development has moved to a new repository: https://github.com/neuralegion/har-sdk

@neuralegion/oas2har
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

oas2har

THIS REPO HAS BEEN DEPRECATED. THE DEVELOPMENT HAS MOVED TO A NEW REPOSITORY: https://github.com/NeuraLegion/har-sdk

Transform you Swagger OAI spec files to a series of HAR request objects.

Setup

npm i --save @neuralegion/oas2har

Usage

Using as a ES module:

import { oasToHarList } from '@neuralegion/oas2har';
import swaggerJSON from 'your-swagger-api.json'; // e.g. http://petstore.swagger.io/v2/swagger.json

oasToHarList(swaggerJSON)
  .then((har) => {
    console.log(har);
  });

Testing

npm run test

Package Sidebar

Install

npm i @neuralegion/oas2har

Weekly Downloads

7

Version

0.7.2

License

MIT

Unpacked Size

31.9 kB

Total Files

10

Last publish

Collaborators

  • bar.hofesh
  • derevnjuk