Registry / testing / paperclip-lint

paperclip-lint

JSON →
library0.0.8jsnpmunverified

A command-line utility and JavaScript library for linting Paperclip templates to ensure cross-browser compatibility. Version 0.0.8 is the latest stable release, though the package appears to have no recent updates. It provides both CLI (`pclint`) and programmatic usage via `require('paperclip-lint')`. Key differentiators: specifically designed for Paperclip templates, which are used with the Paperclip frontend framework. It outputs warnings and errors to help developers avoid browser-specific issues.

npm install paperclip-lint
INSTALL
IMPORT
SIG · PAPERCLIP-LINT
P
paperclip-lint
testingjavascriptv0.0.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.

default function
import pclint from 'paperclip-lint';
const pclint = require('paperclip-lint');
ESM import works in Node.js with ESM support; CommonJS require may also work depending on Node version.
default function with require
const pclint = require('paperclip-lint');
CommonJS require is valid for this package, as it appears to export a function.
named export (if any)
import { pclint } from 'paperclip-lint';
No named exports are documented; likely only default export.

Shows how to use paperclip-lint programmatically to check a template string and access warnings and errors.

const pclint = require('paperclip-lint'); const template = '<div>{{foo}}</div>'; const report = pclint(template); console.log('Warnings:', report.warnings); console.log('Errors:', report.errors);
pclint --version
Debug
Known issues
gotchaPackage has not been updated in years; might not support modern JavaScript or Node versions.
fix
Consider using an alternative linter or fork if needed.
affects: *
gotchaThe package expects Paperclip templates; using it with other template engines will produce false positives/negatives.
fix
Ensure input is a valid Paperclip template string.
affects: *
Errors
Common errors & fixes
Cannot find module 'paperclip-lint'
Package not installed or missing from node_modules.
fix
Run npm install paperclip-lint
paperclip-lint is not a function
Incorrect import (e.g., named import when default expected).
fix
Use const pclint = require('paperclip-lint'); instead of { pclint }.
Upgrade
Version history
0.0.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

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