JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q58535F
  • License AGPL-3.0

@magic pre module. syntax highlighting for javascript.

Package Exports

  • @magic-modules/pre
  • @magic-modules/pre/src/index.mjs

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 (@magic-modules/pre) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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

...