Registry / serialization / html-es

html-es

JSON →
library0.1.5jsnpmunverified

html-es is a TypeScript transpiler (v0.1.5) that converts EsHTML, a variant of HTML with Spanish-language tags and attributes, into standard HTML. It is designed as an educational tool for Spanish speakers learning web development, removing the English terminology barrier. The package is in active development with a small API surface: a class-based transpiler supporting optional strict mode and warning control. It ships TypeScript types but is not yet published to npm as of this writing. No known alternatives for Spanish HTML transliteration exist.

npm install html-es
INSTALL
IMPORT
SIG · HTML-ES
H
html-es
serializationjavascriptv0.1.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.

EsHTMLTranspiler
import { EsHTMLTranspiler } from 'html-es'
import EsHTMLTranspiler from 'html-es'
Only named export. Default import will fail.
TranspileOptions
import type { TranspileOptions } from 'html-es'
import { TranspileOptions } from 'html-es'
TranspileOptions is a TypeScript interface; use type import for compile-time only.
EsHTMLTranspiler (CommonJS)
const { EsHTMLTranspiler } = require('html-es')
const EsHTMLTranspiler = require('html-es')
Package supports both ESM and CJS due to dual module format.

Creates an EsHTMLTranspiler instance and transpiles Spanish-tagged markup to standard HTML.

import { EsHTMLTranspiler } from 'html-es'; const transpiler = new EsHTMLTranspiler(); const eshtml = ` <artículo> <título>¡Hola Mundo!</título> <sección clase="contenido"> <párrafo>Este es un ejemplo de EsHTML</párrafo> <botón deshabilitado>Enviar</botón> </sección> </artículo> `; const html = transpiler.transpile(eshtml); console.log(html);
Debug
Known issues
gotchaPackage not published on npm yet (as of v0.1.5); install from GitHub or local build required.
fix
Clone repository and run `npm run build` then `npm pack`.
affects: 0.1.5
gotchaEsHTML elements do not support all possible HTML attribute mappings; only common attributes are translated (e.g. 'class' to 'clase').
fix
Check the source mapping files for supported attributes; contribute missing ones.
affects: >=0.0.0
gotchaTranspiler may not handle nested self-closing tags correctly; use closing tags explicitly.
fix
Ensure all tags are properly closed in EsHTML source.
affects: >=0.0.0
Errors
Common errors & fixes
TypeError: Class extends value undefined is not a constructor or null
CommonJS require() returns an object without default export; named imports used incorrectly.
fix
Use const { EsHTMLTranspiler } = require('html-es');
Uncaught SyntaxError: The requested module 'html-es' does not provide an export named 'default'
Attempting to default import a module that only has named exports.
fix
Use import { EsHTMLTranspiler } from 'html-es';
TypeError: transpiler.transpile is not a function
Instantiating the class incorrectly or using a non-constructor export.
fix
Ensure correct import: import { EsHTMLTranspiler } from 'html-es'; then new EsHTMLTranspiler();
Upgrade
Version history
0.1.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
html-es — npm install html-es · libregistry