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.
DocuRun is a tool to run your documentation as integration tests.
I bet both your integration tests and your documentation are disappointing.
If you make a change that breaks the documented behavior of the user interface, you probably only find out when your users complain.
DocuRun is a tool that takes markdown files including playwright code blocks and runs them as integration tests. It produces a beautiful documentation website with screenshots taken during the tests.
docurun/index.md
file that looks like this: npx docurun
docurun/website/
directory containing a static website with your documentation and screenshots.
If some tests failed, the documentation will contain the screenshots of the page at the time of the failure, and the error message.You can also run DocuRun in a docker container, without having to install node.js on your machin:
docker run -v $(pwd)/docurun:/docurun -it lovasoa/docurun
See lovaoa/docurun on Docker Hub.
This shows the executable documentation of the SQLPage website building tool.
An error run looks like this in the terminal
$ npx docurun
> docurun@0.0.1 start
> node cli.js
Processing all files in ./docurun/:
- download_sqlpage.md
- star_a_repository.md.
Saving results to ./docurun/website/.
✅ download_sqlpage
Error while executing code:
await page.getByText('inexistent element').click()
locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for getByText('inexistent element')
❌ star_a_repository
And rendered:
FAQs
Executable website documentation
The npm package docurun receives a total of 0 weekly downloads. As such, docurun popularity was classified as not popular.
We found that docurun demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
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.