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.
npm i --save @neuralegion/oas2har
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);
});
npm run test