JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 397
  • Score
    100M100P100Q121955F
  • License MIT

Package Exports

  • html-code-gen

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (html-code-gen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

html-code-gen

Build Status NPM version Coverage Status Dependencies DevDependencies

html-code-gen is a HTML-code generator. It generates HTML code with given dom(-like) object.

Install

npm install html-code-gen

Usage

var genner = require('html-code-gen'),
    output = genner.print(dom, opt);

Options

  • indent-size: size of indent

    default: 4

  • indent-char: char of indent ( space / tab )

    default: 'space'

  • max-char: max char num in one line

    default: 80 (TODO)

  • no-format-tag: tags whose content should not be formatted

    default: spec.tagTypeMap.inline

  • no-format: no format

    default: false

  • formatter: special formatters { tagName ( script / style ) : formater )

    default: {}

  • level: current level

    default: 0