Skip to content

sixaphone/oas2har

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oas2har

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%