Registry / steppe-transpiler

steppe-transpiler

JSON →
library1.0.5jsnpmunverified

An experimental HTML-to-HTML transpiler (v1.0.5) that reduces keystrokes by using short host elements (e.g., 's' for fecund, 'br' for void) where tag names become attributes. Aimed at avoiding external DSLs or parsers. Currently a proof-of-concept with no active development, primarily a design exploration. Differentiators: uses native browser parsing, no dependencies, focuses on QWERTY ergonomics. No releases or updates since initial publish.

npm install steppe-transpiler
INSTALL
IMPORT
SIG · STEPPE-TRANSPILER
S
steppe-transpiler
javascriptv1.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

steppe
import steppe from 'steppe-transpiler'
const steppe = require('steppe-transpiler')
Package is ESM-only (type: module). No named exports.
transpile
import { transpile } from 'steppe-transpiler'
import transpile from 'steppe-transpiler'
Named export; default export is the main function (alias).
transpile
import { transpile } from 'steppe-transpiler'
import { transpile } from 'steppe'
Package name must be 'steppe-transpiler', not 'steppe'.

Shows basic usage: replace 's' host elements with 'a' guests, and 'br' hosts with 'img' guests, expanding attributes.

import { transpile } from 'steppe-transpiler'; const input = `<s a="href:https://example.com">Click <br a="img src:logo.png"></s>`; const output = transpile(input); console.log(output); // <a href="https://example.com">Click <img src="logo.png"></a>
Debug
Known issues
gotchaTranspiler is experimental and incomplete; may produce invalid HTML or fail on edge cases.
fix
Avoid in production; use well-tested alternatives like Pug or Handlebars.
affects: >=1.0.0
breakingNo stable API; function signatures may change without notice.
fix
Pin to exact version and test thoroughly after updates.
affects: >=1.0.0
gotchaPackage has zero tests and no CI; reliability unknown.
fix
Review source code before using; contribute tests if adopting.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'steppe-transpiler'
Package not installed.
fix
Run `npm install steppe-transpiler`.
SyntaxError: Unexpected token 'export'
Using CommonJS require() on an ESM-only package.
fix
Use dynamic import: `const steppe = await import('steppe-transpiler')` or enable ESM in your project.
Upgrade
Version history
1.0.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
steppe-transpiler — npm install steppe-transpiler · libregistry