{"id":25733,"library":"html-es","title":"html-es","description":"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.","status":"active","version":"0.1.5","language":"javascript","source_language":"en","source_url":"https://github.com/jorgoose/es-html","tags":["javascript","html","spanish","education","web","learning","transpiler","español","programming","typescript"],"install":[{"cmd":"npm install html-es","lang":"bash","label":"npm"},{"cmd":"yarn add html-es","lang":"bash","label":"yarn"},{"cmd":"pnpm add html-es","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Only named export. Default import will fail.","wrong":"import EsHTMLTranspiler from 'html-es'","symbol":"EsHTMLTranspiler","correct":"import { EsHTMLTranspiler } from 'html-es'"},{"note":"TranspileOptions is a TypeScript interface; use type import for compile-time only.","wrong":"import { TranspileOptions } from 'html-es'","symbol":"TranspileOptions","correct":"import type { TranspileOptions } from 'html-es'"},{"note":"Package supports both ESM and CJS due to dual module format.","wrong":"const EsHTMLTranspiler = require('html-es')","symbol":"EsHTMLTranspiler (CommonJS)","correct":"const { EsHTMLTranspiler } = require('html-es')"}],"quickstart":{"code":"import { EsHTMLTranspiler } from 'html-es';\n\nconst transpiler = new EsHTMLTranspiler();\nconst eshtml = `\n<artículo>\n  <título>¡Hola Mundo!</título>\n  <sección clase=\"contenido\">\n    <párrafo>Este es un ejemplo de EsHTML</párrafo>\n    <botón deshabilitado>Enviar</botón>\n  </sección>\n</artículo>\n`;\nconst html = transpiler.transpile(eshtml);\nconsole.log(html);","lang":"typescript","description":"Creates an EsHTMLTranspiler instance and transpiles Spanish-tagged markup to standard HTML."},"warnings":[{"fix":"Clone repository and run `npm run build` then `npm pack`.","message":"Package not published on npm yet (as of v0.1.5); install from GitHub or local build required.","severity":"gotcha","affected_versions":"0.1.5"},{"fix":"Check the source mapping files for supported attributes; contribute missing ones.","message":"EsHTML elements do not support all possible HTML attribute mappings; only common attributes are translated (e.g. 'class' to 'clase').","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure all tags are properly closed in EsHTML source.","message":"Transpiler may not handle nested self-closing tags correctly; use closing tags explicitly.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use const { EsHTMLTranspiler } = require('html-es');","cause":"CommonJS require() returns an object without default export; named imports used incorrectly.","error":"TypeError: Class extends value undefined is not a constructor or null"},{"fix":"Use import { EsHTMLTranspiler } from 'html-es';","cause":"Attempting to default import a module that only has named exports.","error":"Uncaught SyntaxError: The requested module 'html-es' does not provide an export named 'default'"},{"fix":"Ensure correct import: import { EsHTMLTranspiler } from 'html-es'; then new EsHTMLTranspiler();","cause":"Instantiating the class incorrectly or using a non-constructor export.","error":"TypeError: transpiler.transpile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}