Paperclip HTML Compiler

raw JSON →
18.3.8 verified Fri May 01 auth: no javascript

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.

error Cannot find module 'paperclip-compiler-html'
cause Package not installed or incorrect import path.
fix
Run npm install paperclip-compiler-html and use correct import.
error compileHTML is not a function
cause Import mistake: likely using default import instead of named.
fix
Use import { compileHTML } from 'paperclip-compiler-html'.
gotcha Package is in early WIP state; API may change without notice.
fix Pin to specific version and update frequently.
gotcha No stable release; expect breaking changes between minor versions.
fix Watch for changelog and update dependencies carefully.
npm install paperclip-compiler-html
yarn add paperclip-compiler-html
pnpm add paperclip-compiler-html

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);