ss

swagger-split

Split giant swagger files into smaller files

Showing:

Popularity

Downloads/wk

38

Maintenance

No Maintenance Data Available

Package

Dependencies

5

Size (min+gzip)

69.1KB

License

UNLICENSED

Type Definitions

Tree-Shakeable

No?

Categories

Readme

swagger-split

h1. Helps you have the Dopest Swagger on the Block

Did you start off your swagger project like a fool? Did you modify a single swagger.yaml/swagger.json file until you hated yourself? Do you now have a swagger file that is thousands of lines long?

Well now you can fix that! With Swagger-split. The awesome tool to split your Swagger file into many smaller files, making your code more maintainable and your wife love you more.

example:

var swag = require('swagger-split');

/*
 * @param {string} file - the swagger file to read from
 * @param {int} depth - how deep the files should be split up before stopping
 * @param {string} outputDirectory - where to create a directory and write your new split up swagger!
 */
swag.splitFile('swagger.yaml', 3, './out');

More to come soon!

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100