setom
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

setom

S-Expression to Markup

Usage

Basic

import { toHTML } from setom;
toHTML('(a)');
<a></a>

Nested

toHTML('(div (a))');
<div><a></a></div>

Nested with Multiple Children

toHTML('(div (a) (a))');
<div><a></a><a></a></div>

Text Content

toHTML('(p a)');
<p>a</p>

or

toHTML('(p "banana")');
<p>banana</p>

or

toHTML('(p "ban" "ana")');
<p>banana</p>

Attributes

toHTML('(a :href "github.com")');
<a href="github.com"></a>

Readme

Keywords

Package Sidebar

Install

npm i setom

Weekly Downloads

2

Version

1.0.0

License

none

Unpacked Size

21.5 kB

Total Files

12

Last publish

Collaborators

  • benthemonkey
  • wesleyks