ts-mini-transpiler-html
raw JSON → 0.0.1 verified Fri May 01 auth: no javascript
ts-mini-transpiler-html is an HTML transpiler for the ts-mini ecosystem, designed to convert HTML files into TypeScript-compatible modules. Version 0.0.1 is an initial release with no active maintenance commitment. It serves as a specialized tool within the ts-mini build pipeline, focusing on HTML transformation for TypeScript projects. Differentiators include tight integration with ts-mini and minimal overhead for HTML transpilation.
Common errors
error Cannot find module 'ts-mini-transpiler-html' ↓
cause Package not installed or not in node_modules.
fix
Run
npm install ts-mini-transpiler-html. Warnings
breaking Package is v0.0.1, API may change without notice. ↓
fix Pin to exact version and expect breaking changes.
Install
npm install ts-mini-transpiler-html yarn add ts-mini-transpiler-html pnpm add ts-mini-transpiler-html Imports
- transpileHtml
import { transpileHtml } from 'ts-mini-transpiler-html' - defaultImport wrong
const transpileHtml = require('ts-mini-transpiler-html')correctimport transpileHtml from 'ts-mini-transpiler-html' - Type definitions
import type { TranspileOptions } from 'ts-mini-transpiler-html'
Quickstart
import { transpileHtml } from 'ts-mini-transpiler-html';
const html = '<div>Hello World</div>';
const result = transpileHtml(html);
console.log(result);