Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
documentify
Advanced tools
Modular HTML bundler.
$ documentify [entry-file] [options]
Options:
-h, --help print usage
-v, --version print version
Examples:
Start bundling HTML
$ documentify .
Bundle HTML from a stream
$ cat index.html | documentify
Running into trouble? Feel free to file an issue:
https://github.com/stackhtml/documentify/issues/new
Do you enjoy using this software? Become a backer:
https://opencollective.com/choo
$ documentify ./index.html -t my-transform -t another-transform
{
"name": "my-app",
"version": "1.0.0",
"private": true,
"documentify": {
"transform": [
"my-transform",
"another-transform"
]
}
}
A transform is a regular function that returns a through
stream. The
through
stream can modify the HTML stream, which in turn passes data to the
next stream. Together the streams form a pipeline.
var through = require('through2')
module.exports = transform
function transform (opts) {
return through()
}
document = documentify(entry, [html], [opts])
Create a new documentify instance. If entry
is a .html
file, it'll be
used as the source. If entry
is falsy and html
is a string or readable
stream, that will be used as the input instead. Otherwise if entry
is falsy
and html
is omitted, an empty HTML file with just a body and head will be
used as the source.
document.transform(fn, [opts])
Pass a transform to the document instance
readableStream = document.bundle()
Create a new readable stream, and start flowing the html through the transforms.
FAQs
Modular HTML bundler
The npm package documentify receives a total of 67 weekly downloads. As such, documentify popularity was classified as not popular.
We found that documentify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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 researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.