@magic-modules/pre

0.0.12 • Public • Published

@magic-modules/pre

syntax highlighting for @magic

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge Known Vulnerabilities

install:

npm install --save-exact @magic-modules/pre

usage:

// in any component view
const component = {
  View: () => Pre('const name = true'),
}

changelog

0.0.1

first commit

0.0.2

use @magic npm org for dependency installs, instead of github

0.0.3
  • require node 13.5.0
  • except array as input
0.0.4

better string, comment and link handling.

0.0.5

fix comment indents

0.0.6

cleanup.

0.0.7

  • do not error on empty lines
  • convert to Modules, no more lib functions.
  • lib now exports keywords, builtins, booleans, regexes

0.0.8

  • bump required node version to 14.2.0
  • no empty strings in keywords and builtins

0.0.9

always textAlign: left

0.0.10

bump required node version to 14.15.4

0.0.11
  • update dependencies
  • test html
  • handle multiple strings in one line
0.0.12
  • change some styles
  • handle lines config parameter correctly
  • update dependencies
0.0.15 - unreleased

...

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i @magic-modules/pre

    Weekly Downloads

    3

    Version

    0.0.12

    License

    AGPL-3.0

    Unpacked Size

    45.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • jascha