{"id":27504,"library":"unicorn-compiler","title":"Unicorn Compiler","description":"Compiler for the unicorn project, version 0.3.7. No detailed documentation available; likely a small internal tool with infrequent releases. No alternative comparisons possible due to lack of context. Use with caution as stability and support are unknown.","status":"active","version":"0.3.7","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","compiler","unicorn"],"install":[{"cmd":"npm install unicorn-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add unicorn-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add unicorn-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only package; CommonJS require not supported unless transpiled.","wrong":"const unicorn = require('unicorn-compiler')","symbol":"compile","correct":"import { compile } from 'unicorn-compiler'"},{"note":"Default export available; CommonJS usage requires esModuleInterop.","wrong":"const { default } = require('unicorn-compiler')","symbol":"default","correct":"import unicornCompiler from 'unicorn-compiler'"},{"note":"Type-only import to avoid runtime inclusion.","wrong":"import { UnicornConfig } from 'unicorn-compiler'","symbol":"UnicornConfig","correct":"import type { UnicornConfig } from 'unicorn-compiler'"}],"quickstart":{"code":"// Example usage (untested due to missing docs)\nimport { compile } from 'unicorn-compiler';\n\nconst source = '...'; // your unicorn source\nconst result = compile(source, {\n  // options\n});\nconsole.log(result);","lang":"typescript","description":"Basic usage of compile function with source string and options object."},"warnings":[{"fix":"Check source code or contact maintainer.","message":"No README or documentation available; API may be unstable.","severity":"gotcha","affected_versions":"0.3.7"},{"fix":"Pin exact version and test upgrades carefully.","message":"Low version number (0.x) indicates potentially breaking changes in future releases.","severity":"breaking","affected_versions":"<1.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 unicorn-compiler' in your project.","cause":"Package not installed or missing in node_modules.","error":"Cannot find module 'unicorn-compiler'"},{"fix":"Use 'import { compile } from 'unicorn-compiler'' or 'import unicornCompiler from 'unicorn-compiler''.","cause":"Incorrect import style (default vs named).","error":"TypeError: unicornCompiler is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}