{"_rev":"13-a2cf093229f3bd21ab1c33d774bc82d5","time":{"created":"2024-09-25T13:21:43.016Z","modified":"2024-09-25T13:21:43.630Z","0.6.2":"2024-09-22T20:17:26.991Z","0.6.2-alpha.1":"2024-09-22T20:18:06.444Z","0.6.2-alpha.2":"2024-09-22T20:20:22.435Z","0.6.2-alpha.3":"2024-09-22T20:58:36.744Z","0.6.2-alpha.4":"2024-09-22T21:02:56.433Z","0.6.2-alpha.5":"2024-09-22T21:28:34.214Z","0.6.2-alpha.6":"2024-09-22T21:40:01.542Z","0.6.2-alpha.7":"2024-09-22T21:46:08.874Z","0.6.2-alpha.8":"2024-09-22T22:12:04.765Z","0.6.2-alpha.9":"2024-09-22T22:37:05.946Z","0.6.2-alpha.10":"2024-09-22T22:41:32.462Z","0.6.2-stable":"2024-09-25T13:21:43.330Z"},"_id":"@c3-lang/c3c","name":"@c3-lang/c3c","dist-tags":{"latest":"0.6.2-stable"},"versions":{"0.6.2-stable":{"name":"@c3-lang/c3c","version":"0.6.2-stable","description":"Compiler for the C3 language","repository":{"type":"git","url":"git+https://github.com/c3lang/c3c.git"},"bugs":{"url":"https://github.com/Hema2-official/c3c-npm/issues"},"license":"LGPL-3.0-only","type":"module","main":"lib/main.js","types":"lib/main.d.ts","engines":{"node":">=18"},"optionalDependencies":{"@c3-lang/c3c-darwin-x64":"0.6.2","@c3-lang/c3c-linux-x64":"0.6.2","@c3-lang/c3c-win32-x64":"0.6.2"},"gitHead":"f6c46f4c577ec09c3005a0fcbf52994f898a6231","homepage":"https://github.com/c3lang/c3c#readme","dependencies":{"@c3-lang/c3c-darwin-x64":"0.6.2","@c3-lang/c3c-linux-x64":"0.6.2","@c3-lang/c3c-win32-x64":"0.6.2"},"_id":"@c3-lang/c3c@0.6.2-stable","_nodeVersion":"20.3.1","_npmVersion":"9.7.2","dist":{"integrity":"sha512-PFH9sBgCqX/puN9hVbeWrB6QfzCNhviExIx6raQHEmv66ro1kIoIHkhYpAyTjU3CRm4+QTSfMWtxbLVSwzpWAQ==","shasum":"d36786e59afd67c2887af984cfca529e51b7034f","tarball":"https://registry.npmjs.org/@c3-lang/c3c/-/c3c-0.6.2-stable.tgz","fileCount":5,"unpackedSize":7104,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzO91keMf6jPdxlD5OdqPWZ1ardRLMxDHDbG7We+J1IAiBJBC3042MJ53u+HAZunSCCiASItuRxR3hL+AL8wEmkmQ=="}]},"_npmUser":{"name":"hema2","email":"nyilasmatya@gmail.com"},"directories":{},"maintainers":[{"name":"hema2","email":"nyilasmatya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/c3c_0.6.2-stable_1727270503130_0.8512146567029699"},"_hasShrinkwrap":false}},"maintainers":[{"name":"hema2","email":"nyilasmatya@gmail.com"}],"description":"Compiler for the C3 language","homepage":"https://github.com/c3lang/c3c#readme","repository":{"type":"git","url":"git+https://github.com/c3lang/c3c.git"},"bugs":{"url":"https://github.com/Hema2-official/c3c-npm/issues"},"license":"LGPL-3.0-only","readme":"# ✨ C3C on NPM ✨\r\n\r\nThe official C3 compiler published on NPM.\r\n\r\nThis package exposes an API to run the C3 compiler on your native platform.\r\nIt works with the `optionalDependencies` feature of NPM to automatically download the correct binaries, inspired by the [esbuild](https://www.npmjs.com/package/esbuild) package.\r\n\r\n## Supported platforms\r\n- Windows x64\r\n- Linux x64\r\n- Darwin (MacOS) x64\r\n\r\nIf your platform is not on this list yet or appears to be broken, you can install C3C from [the official website](https://c3-lang.org) or build it from [source](https://github.com/c3lang/c3c) yourself, then set the `C3C_BINARY_PATH` environment variable to the installed executable.\r\nThis way, the package will skip any checks and attempts to download binaries.\r\n\r\n## Usage\r\n```js\r\n// Import the run_c3c function\r\nimport { run_c3c } from '@c3-lang/c3c';\r\n\r\ntry {\r\n    // This is equivalent to running `c3c compile example.c3`.\r\n    run_c3c('compile example.c3', { /* options for child_process.execSync */ });\r\n} catch (error) {\r\n    console.error('C3 compilation failed: ', error);\r\n}\r\n```\r\n","readmeFilename":"README.md"}