{"library":"lottie-lint","title":"Lottie Lint","description":"A linting tool for Lottie animation JSON files. Current stable version is 1.2.0. It checks for performance issues, compatibility problems, and errors in Lottie animations. Key differentiators: provides granular reports with severity levels (error, warn, info, incompatible) and identifies incompatible features across platforms (iOS, Web, Android). Designed for use in CI/CD pipelines to catch Lottie issues early. Release cadence appears irregular, with a few minor versions since initial release.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install lottie-lint"],"cli":{"name":"lottie-lint","version":null}},"imports":["import linter from 'lottie-lint';","const linter = require('lottie-lint').default;","const { json, reports } = linter(lottieJson);"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import linter from 'lottie-lint';\nimport fs from 'fs';\n\n// Read a Lottie JSON file\nconst lottieJson = JSON.parse(fs.readFileSync('animation.json', 'utf-8'));\n\n// Run the linter\nconst { json, reports } = linter(lottieJson);\n\n// Print each report\nreports.forEach(report => {\n  console.log(`[${report.type}] ${report.rule}: ${report.message}`);\n  if (report.incompatible.length > 0) {\n    console.log(`  Incompatible on: ${report.incompatible.join(', ')}`);\n  }\n});\n\n// Check if there are any errors\nconst errors = reports.filter(r => r.type === 'error');\nif (errors.length > 0) {\n  process.exit(1);\n}","lang":"typescript","description":"Demonstrates how to import the linter, run it on a Lottie JSON object, and process the resulting reports.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}