Registry / web-framework / paperclip-compiler-html

paperclip-compiler-html

JSON →
library18.3.8jsnpmunverified

The paperclip-compiler-html package at version 18.3.8 is an HTML compiler component of the Paperclip framework. It compiles Paperclip design documents into HTML. The library is currently a work in progress (WIP). Release cadence is unclear due to its early stage. Key differentiators: designed specifically for Paperclip's design-to-code pipeline. No stable releases yet; use with caution.

npm install paperclip-compiler-html
INSTALL
IMPORT
SIG · PAPERCLIP-COMPILER
P
paperclip-compiler-html
web-frameworkjavascriptv18.3.8
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.

compileHTML
import { compileHTML } from 'paperclip-compiler-html'
const compileHTML = require('paperclip-compiler-html');
ESM-only; no CommonJS support.
compileFile
import { compileFile } from 'paperclip-compiler-html'
import compileFile from 'paperclip-compiler-html';
Named export, not default.
default
import htmlCompiler from 'paperclip-compiler-html'
import { default as htmlCompiler } from 'paperclip-compiler-html';
Default export is available, but named exports are preferred.

Shows basic usage of compileHTML function to compile a Paperclip design string to HTML.

import { compileHTML } from 'paperclip-compiler-html'; const input = `<div>Hello</div>`; const result = compileHTML(input, { mode: 'design' }); console.log(result);
paperclip --version
Debug
Known issues
gotchaPackage is in early WIP state; API may change without notice.
fix
Pin to specific version and update frequently.
affects: >=0
gotchaNo stable release; expect breaking changes between minor versions.
fix
Watch for changelog and update dependencies carefully.
affects: >=0
Errors
Common errors & fixes
Cannot find module 'paperclip-compiler-html'
Package not installed or incorrect import path.
fix
Run `npm install paperclip-compiler-html` and use correct import.
compileHTML is not a function
Import mistake: likely using default import instead of named.
fix
Use `import { compileHTML } from 'paperclip-compiler-html'`.
Upgrade
Version history
18.3.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
paperclip-compiler-html — npm install paperclip-compiler-html · libregistry