
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@useoptic/document-sails
Advanced tools
Optic's documenting middleware for Sails.
Install the node module from npm:
npm install @useoptic/document-sails
Add the Optic documenting middleware to config/http.js. The middleware will be skipped by default and will never run in production. It only runs when your tests were started by optic api:document. Every HTTP request your run to test your API will be used by Optic to infer the current API contract.
module.exports.http = {
middleware: {
order: [
'cookieParser',
'session',
'bodyParser',
'compress',
'poweredBy',
'documentSails', //Optic always goes just before router
'router',
'www',
'favicon'
],
documentSails: require('@useoptic/document-sails') //import middleware from package
}
}
FAQs
An Optic fixture for documenting Sails JS
The npm package @useoptic/document-sails receives a total of 4 weekly downloads. As such, @useoptic/document-sails popularity was classified as not popular.
We found that @useoptic/document-sails demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.