Created
December 19, 2017 06:02
-
-
Save rajiff/f83430e08d7eba9dbd93f50f5c1be267 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const swaggerDocument = require('yamljs').load('./api/swagger/swagger.yaml'); | |
fs.writeFileSync('./api/swagger/swagger.json', JSON.stringify(swaggerDocument, null, ' ')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment