New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sphido/core

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sphido/core

A rocket 🚀 fast, lightweight, static site generator

  • 0.0.8
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-18.18%
Maintainers
1
Weekly downloads
 
Created
Source

@sphido/core

npm version

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.

Install

yarn add @sphido/core

Example

const globby = require('globby');
const {getPages} = require('@sphido/core');

(async () => {

  const pages = await getPages(
    await globby('content/**/*.{md,html}')
  );
})();

Source codes

https://github.com/sphido/sphido/tree/master/packages/sphido-core

Keywords

FAQs

Package last updated on 24 Sep 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc