The `api-blueprint-http-formatter` package is a JavaScript utility designed to transform structured HTTP request and response objects into a string formatted according to the API Blueprint specification. It takes a JavaScript object containing `request` and `response` keys, adhering to the data model typically used by the Gavel validation tool, and outputs a textual representation suitable for API Blueprint documentation. The current and only released version is 0.0.1. This project appears to be abandoned, with its last commit on GitHub dating back to 2014, and is no longer actively maintained. The broader API Blueprint ecosystem has seen a general decline in new tooling and adoption, with the industry largely shifting towards OpenAPI/Swagger for API description, partly due to the shutdown of major platforms like Apiary.io which championed API Blueprint. This package focuses exclusively on formatting and does not offer parsing, validation, or other API Blueprint-related functionalities.
npm install api-blueprint-http-formatterVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use the `format` function to convert an HTTP request/response pair into an API Blueprint formatted string.
Consider migrating to tools that support OpenAPI/Swagger, which is the current industry standard for API description and has robust, actively maintained tooling.
For new projects, prefer using OpenAPI/Swagger. If maintaining existing API Blueprint documentation, be aware of the limited tooling and community support. Tools like `apib2openapi` might help with migration.
Use `const bf = require('api-blueprint-http-formatter');` for importing this module.Refer to Gavel's documentation for the exact expected `request` and `response` object structures to ensure correct formatting.
Ensure you are using `const bf = require('api-blueprint-http-formatter');` and then calling `bf.format(post);`. If requiring from a local file, ensure the path `require('./src/api-blueprint-http-formatter')` is correct relative to your script.Install the package using npm: `npm install api-blueprint-http-formatter` or ensure it's listed in your `package.json` dependencies and `npm install` has been run.
No dependency data recorded yet.