Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
docpad-plugin-functions
Advanced tools
Start functions between DocPad events
Install this DocPad plugin by entering docpad install functions
into your terminal.
This plugin was inspired by docpad-plugin-gulp and behaviour of this plugin is almost the same code-wise and in implementation BUT with slight differences:
(not available renderDocument
, and render
since they caused memory spikes and shouldn't be used in this plugin)
The following will run function validateDocuments
during the
generateBefore event:
validateDocuments = require 'validator.js' #this require should be at the top of docpad.coffee
plugins:
functions:
generateBefore: [validateDocuments]
writeAfter: [asyncFunction1, someOtherAsyncFunction2]
asyncFunction1
and someOtherAsyncFunction2
will be run in series
Every passed function should have following structure with callback:
validator.js
function validateDocuments(cb) {
checkFilesAsynchronously((err) => {
cb(err);
});
}
To be implemented if there is someone to actually use it, so feel free to file issues
Discover the release history by heading on over to the releases page.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
FAQs
Start functions between DocPad events
The npm package docpad-plugin-functions receives a total of 2 weekly downloads. As such, docpad-plugin-functions popularity was classified as not popular.
We found that docpad-plugin-functions 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.