Socket
Socket
Sign inDemoInstall

@coffeekraken/s-markdown-builder

Package Overview
Dependencies
14
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @coffeekraken/s-markdown-builder

Markdown builder that let you use the AMAZING handlebars.js syntax to generate your final markdown files.


Version published
Maintainers
1
Created

Readme

Source

{{#> layout-readme }}

Build markdown files using Handlebars

This SMarkdownBuilder package allows you to easily build markdown files using the nice handlebars template engine.

  • Access some useful data like:
    • config: The entire SSugarConfig configuration object
    • flatConfig: Same as config but flatten
    • settings: The markdown builder settings used to build your markdown file
    • params: The markdown builder build parameters
    • packageJson: The package.json object
    • docmap: The SDocmap object
    • ck: The coffeekraken metas grabed using the getCoffeekrakenMetas function
    • time: A simple time object with year, month and day values
  • Access to all the @coffeekraken/s-handlebars helpers
  • And more...

Usage

Here's how to use our implementation:

import __SMarkdownBuilder from '@coffeekraken/s-markdown-builder';
const builder = new __SMarkdownBuilder();

// Using globs
await builder.build({
    glob: '**/*.md',
    inDir: '/my/cool/inputDirectory',
    outDir: '/my/cool/outputDirectory',
});

// A specific file
await builder.build({
    inPath: '/my/cool/file.md',
    outPath: '/my/cool/build.md',
});

// Raw value
await builder.build({
    inRaw: '# Hello {{packageJson.name}}',
    outPath: '/my/cool/build.md',
});

API

For more information about the API of this class, please check our API documentation

Build parameters

{{> interface namespace='@coffeekraken.s-markdown-builder.node.interface.SMarkdownBuilderBuildParamsInterface' }}

{{/ layout-readme }}

FAQs

Last updated on 18 Aug 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc