{"id":26063,"library":"paperclip-lint","title":"paperclip-lint","description":"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.","status":"active","version":"0.0.8","language":"javascript","source_language":"en","source_url":"git://github.com/classdojo/paperclip-lint","tags":["javascript"],"install":[{"cmd":"npm install paperclip-lint","lang":"bash","label":"npm"},{"cmd":"yarn add paperclip-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add paperclip-lint","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM import works in Node.js with ESM support; CommonJS require may also work depending on Node version.","wrong":"const pclint = require('paperclip-lint');","symbol":"default function","correct":"import pclint from 'paperclip-lint';"},{"note":"CommonJS require is valid for this package, as it appears to export a function.","wrong":null,"symbol":"default function with require","correct":"const pclint = require('paperclip-lint');"},{"note":"No named exports are documented; likely only default export.","wrong":null,"symbol":"named export (if any)","correct":"import { pclint } from 'paperclip-lint';"}],"quickstart":{"code":"const pclint = require('paperclip-lint');\nconst template = '<div>{{foo}}</div>';\nconst report = pclint(template);\nconsole.log('Warnings:', report.warnings);\nconsole.log('Errors:', report.errors);","lang":"javascript","description":"Shows how to use paperclip-lint programmatically to check a template string and access warnings and errors."},"warnings":[{"fix":"Consider using an alternative linter or fork if needed.","message":"Package has not been updated in years; might not support modern JavaScript or Node versions.","severity":"gotcha","affected_versions":"*"},{"fix":"Ensure input is a valid Paperclip template string.","message":"The package expects Paperclip templates; using it with other template engines will produce false positives/negatives.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install paperclip-lint","cause":"Package not installed or missing from node_modules.","error":"Cannot find module 'paperclip-lint'"},{"fix":"Use const pclint = require('paperclip-lint'); instead of { pclint }.","cause":"Incorrect import (e.g., named import when default expected).","error":"paperclip-lint is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}