Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
docs-server
Advanced tools
A server which is used to build a kind of microservices for docs system.
Perform automatic markdown searching and generate correct dynamic routes according to the root path of your project.
Support multiple-level documentation routes.
Support for specifying additional static resources routes.
# yarn
yarn add docs-server
# npm
npm i docs-server
const DocsServer = require('docs-server')
// It should be running at http://localhost:8800 by default
const app = new DocsServer()
or
const DocsServer = require('docs-server')()
const resolve = require('path').resolve
const DocsServer = require('docs-server')
// Notice: all options is optional
const app = new DocsServer({
// should be nodejs current working directory
cwd: resolve('./'),
// the output path of catalog files (based on current working directory)
dest: resolve('./menu.json'),
// your server running port
port: '8800',
// extra static resource routes
extra: [
{
route: '/test', // eg. http://locahost:8800/test
middleware: async (ctx, next) => {
// do something
}
}
]
})
# test your server
curl -v http://localhost:8800 # response from /
curl -v http://localhost:8800/doc/sample # response from /doc/sample
1.0.2 (2018-08-05)
<a name="1.0.1"></a>
FAQs
A server which is used to build one of microservices for docs system
The npm package docs-server receives a total of 1 weekly downloads. As such, docs-server popularity was classified as not popular.
We found that docs-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.