
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@sphido/core
Advanced tools
Core contains most important getPage()
and getPages()
functions.
getPage(file, [...extenders])
- returns a page
object generated from file.getPages(files, [...extenders])
- returns array of page
objects from list of files.Basic page object looks like bellow:
{
"file":"path to the file",
"dir": " directory to the file",
"base" : "file basename without extension",
"content": "content of file"
}
Pages are merged inside getPage()
function together with extenders
. Extender can be object
or function
.
yarn add @sphido/core
import globby from 'globby';
import {getPages} from '@sphido/core';
(async () => {
const pages = await getPages(
await globby('content/**/*.{md,html}')
);
})();
You can also process single page like follow:
import {getPage} from '@sphido/core';
(async () => {
const page = await getPage('example.md');
})();
https://github.com/sphido/sphido/tree/master/packages/sphido-core
FAQs
A rocket 🚀 fast, lightweight, static site generator
The npm package @sphido/core receives a total of 1 weekly downloads. As such, @sphido/core popularity was classified as not popular.
We found that @sphido/core 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.