0.0.4 • Published 4 years ago

chlog-to-html-list v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

npm-chlog-to-html-list

Changelog to html list, for embedding it to your html.

Announcements

Preparing, don't use yet.

Requirements

Installation

Install it as devDependencies.

npm install --save-dev npm-chlog-to-html-list

Usage

Blueprint

A very simple blueprint of yoru script may be as below:

 //load the module
 var lister = require("chlog-to-html-list");

 //give options as an object
 var list = lister.getList({
    changelog_path:"path_to_changelog.md" 
 });

 //embed the generated list to your html page now.

Options

Available options are as follows:

General options

keytypedefaultdescription
verbosebooleantrueWhether to show console outputs during the process.

Options for Paths

keytypedefaultdescription
changelog_pathstring"CHANGELOG.md"Path to the changelog file(from the root path).
package_json_pathstring"package.json"Path to the package.json file(from the root path).

Options for html outputs

keytypedefaultdescription
list_idstring"changelog-list"The id of the list(list_type).
list_classstring"changelog-list"The class name of the list(list_type).
list_typestring"ul"The list type of the most outer element of the output html.

Seeing log

By default the option "verbose" is set to true. You could also get logs as an array so that you can store them if you want to. To get the log, just call the "getLog()" method. Note that an empty log will be returnedd when you call "getLog()" before calling "getList" method. example:

var logs = lister.getLog();

Roadmap

Everything should be fine by 1.0.0. No further development is being planned.

There can be some updates related to:

  • dependency updates
  • language udpates
  • updates on changelog schemes.

Changes