![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
docpad-plugin-schema
Advanced tools
Lets you attach JSON schema to your collection
Install this DocPad plugin by entering docpad install schema
into your terminal.
To use this plugin you need to add schema
record into plugins object in docpad.coffee
.
Fields must match collection names, so if you have defined collection posts
here is example how it can look.
plugins:
schema:
posts: require './schema/postSchema.json' # schema for posts collection
Schema is compliant with JSON Schema draft v4.
Basic usage:
{
"type": "object",
"properties": {
"metadata": {"type": "string"},
"sort_metadata": {"type": "number"}
},
"required": ["metadata", "sort_metadata"]
}
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 HISTORY.md
file.
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
Lets you attach JSON schema to your collection
The npm package docpad-plugin-schema receives a total of 1 weekly downloads. As such, docpad-plugin-schema popularity was classified as not popular.
We found that docpad-plugin-schema 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.