इंस्टॉल करना
npm install @powerduck/openapi-parser
Node.js 22.12.0 या इसके बाद का संस्करण आवश्यक है।
पैकेज की संरचना
@powerduck/openapi-parser
├── dist/index.js # ESM build
├── dist/index.cjs # CJS build (require())
└── dist/index.d.ts # TypeScript declarations
ESM (Node.js 22.12.0 या बाद का संस्करण, आधुनिक बंडलर)
import { upgradeOasTo32 } from "@powerduck/openapi-parser";
CommonJS (Electron की मुख्य प्रक्रिया)
const { upgradeOasTo32 } = require("@powerduck/openapi-parser");