Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

utterson-generator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utterson-generator

Utterson module for parsing markdown files and generating static html

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Utterson-Generator

Git markdown parsing and static html generator module for the static blog generation framework Utterson.

Installation

npm install utterson-generator

Usage

var generator = require('utterson-generator');

Requirements

  • Parses markdown files from different directories on one level
  • Needs an intelligent template like Utterson-Casper to generate the static html

Core Methods

// Set the template
generator.use(templateReference);

// Add a source directory for markdown files
generator.add(pathToMarkdownDirectory);

// Ignoring a specific directory in sources
generator.ignore(['folderName1', 'folderName2']);

// Setup the distribution folder that will be the destination of the static html files
generator.dist(pathToDistributionFolder);

// Trigger the transformation from the markdown files
generator.build();

Additional Methods

// Set a logging function
generator.logger(loggingFn);

License

MIT-Licensed

Keywords

FAQs

Package last updated on 27 Apr 2015

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