{"id":25633,"library":"glimt","title":"Glimt","description":"Glimt is a Node.js CLI utility for transpiling comments in large codebases, allowing developers to avoid rewriting repetitive comments. Version 1.1.0 is the latest stable release, but the project appears to be in maintenance or low-activity phase. It requires global installation and uses a .glimtrc configuration file to specify comment lines to replace. The library also offers module and line clearing features. It differentiates itself by focusing on comment replacement rather than full code transformation, but has limited functionality with a constraint of 13 characters for replacement.","status":"maintenance","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/ev1stensberg/glimt","tags":["javascript","transpiler","converter","comments","node","parser"],"install":[{"cmd":"npm install glimt","lang":"bash","label":"npm"},{"cmd":"yarn add glimt","lang":"bash","label":"yarn"},{"cmd":"pnpm add glimt","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Glimt is designed as a global CLI tool, not a module. No programmatic import.","wrong":"","symbol":"glimt (CLI)","correct":"npm install -g glimt"}],"quickstart":{"code":"npm install -g glimt\necho '{\"firstComment\": [5, \"// Look for me at line 5\"]}' > .glimtrc\nglimt -o myfile.js \"ReplacementText\"","lang":"javascript","description":"Installs Glimt globally, sets up a .glimtrc config, and runs the CLI to replace a comment in a file."},"warnings":[{"fix":"Keep replacement strings under 14 characters, or add a fallback comment on the next line.","message":"Replacement text longer than 13 characters may corrupt the line after the replacement.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use 'npm install -g glimt' instead of 'npm install glimt'.","message":"Glimt must be installed globally; local install is not supported.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Ensure .glimtrc exists and contains a proper JSON object with 'firstComment' key.","message":"The .glimtrc file is required and must have a valid JSON structure.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install -g glimt' and ensure the global npm bin directory is in PATH.","cause":"Glimt is not installed globally or not in PATH.","error":"glimt: command not found"},{"fix":"Use glimt as a CLI tool: run 'glimt [options] [file]' in terminal.","cause":"Attempted to require glimt locally instead of using CLI.","error":"Cannot find module 'glimt'"},{"fix":"Check .glimtrc syntax: must be like {\"firstComment\": [5, \"// comment text\"]}.","cause":"The .glimtrc file is not valid JSON.","error":"Unexpected token in .glimtrc"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}