{"_id":"@benmurphyy/ctowasm","_rev":"2-f213da9a372604f399c96109952f0007","name":"@benmurphyy/ctowasm","dist-tags":{"latest":"1.0.12"},"versions":{"1.0.7":{"name":"@benmurphyy/ctowasm","version":"1.0.7","description":"Browser-based Typescript compiler from C to Webassembly","repository":{"type":"git","url":"git@github.com:source-academy/c-slang.git"},"author":{"name":"benmurphyy","email":"47269122+benmurphyy@users.noreply.github.com"},"license":"MIT","type":"module","source":"src/index.ts","main":"dist/index.js","targets":{"main":{"includeNodeModules":{}}},"types":"dist/index.d.ts","devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-transform-modules-commonjs":"^7.22.15","@babel/preset-env":"^7.23.2","@babel/preset-typescript":"^7.23.3","@jest/globals":"^29.6.4","@parcel/config-default":"^2.10.1","@parcel/packager-ts":"2.10.1","@parcel/transformer-inline-string":"2.10.1","@parcel/transformer-js":"^2.10.1","@parcel/transformer-react-refresh-wrap":"^2.10.1","@parcel/transformer-typescript-types":"2.10.1","@types/jest":"^29.5.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^6.4.0","@typescript-eslint/parser":"^6.4.0","babel-jest":"^29.7.0","eslint":"^8.47.0","eslint-config-prettier":"^9.0.0","eslint-plugin-unused-imports":"^3.0.0","jest":"^29.7.0","nodemon":"^3.0.1","parcel":"^2.10.1","prettier":"^3.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.1","ts-pegjs":"^4.2.1","typescript":"^5.4.2","yargs":"^17.7.2"},"scripts":{"build":"parcel build --no-cache","lint":"eslint . --fix","prettify":"prettier . --write","compile":"yarn build && node cmd.js compile","compile-run":"yarn build && node cmd.js compile-run","compile-wat":"yarn build && node cmd.js compile-to-wat","gen-c-ast":"yarn build && node cmd.js generate-c-ast","gen-p-c-ast":"yarn build && node cmd.js generate-processed-c-ast","gen-wat-ast":"yarn build && node cmd.js generate-wat-ast","test":"yarn build && NODE_OPTIONS=--experimental-vm-modules jest","unit-test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=unit_tests","check":"tsc --noEmit"},"dependencies":{"bignumber.js":"^9.1.2","peggy":"^3.0.2","wabt":"^1.0.32"},"_id":"@benmurphyy/ctowasm@1.0.7","dist":{"shasum":"9d7560d8e2680859501a031861bf8ac0b7d0c5eb","integrity":"sha512-kto15aJJoM7Tk1X92J81G3jfDpUK0lQWHGc2ipiqBGZfroHv3BbpxjXMasBfr0i6GAUKcdZDsi0/Jnr0tON31g==","tarball":"https://registry.npmjs.org/@benmurphyy/ctowasm/-/ctowasm-1.0.7.tgz","fileCount":8,"unpackedSize":12034648,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIESwfEGPgV0kV7+4d7E9pWbXryc7FSosoEZtDXIxCx8iAiBHL0qKUa8NYHklquOWGMibJF8nNtjRzvKM9OMMura8xw=="}]},"_npmUser":{"name":"benmurphyy","email":"ghjben@gmail.com"},"directories":{},"maintainers":[{"name":"benmurphyy","email":"ghjben@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ctowasm_1.0.7_1711438213885_0.853091140106873"},"_hasShrinkwrap":false},"1.0.11":{"name":"@benmurphyy/ctowasm","version":"1.0.11","description":"Browser-based Typescript compiler from C to Webassembly","repository":{"type":"git","url":"git@github.com:source-academy/c-slang.git"},"author":{"name":"benmurphyy","email":"47269122+benmurphyy@users.noreply.github.com"},"license":"MIT","type":"module","source":"src/index.ts","main":"dist/index.js","targets":{"main":{"includeNodeModules":{}}},"types":"dist/index.d.ts","devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-transform-modules-commonjs":"^7.22.15","@babel/preset-env":"^7.23.2","@babel/preset-typescript":"^7.23.3","@jest/globals":"^29.6.4","@parcel/config-default":"^2.10.1","@parcel/packager-ts":"2.10.1","@parcel/transformer-inline-string":"2.10.1","@parcel/transformer-js":"^2.10.1","@parcel/transformer-react-refresh-wrap":"^2.10.1","@parcel/transformer-typescript-types":"2.10.1","@types/jest":"^29.5.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^6.4.0","@typescript-eslint/parser":"^6.4.0","babel-jest":"^29.7.0","eslint":"^8.47.0","eslint-config-prettier":"^9.0.0","eslint-plugin-unused-imports":"^3.0.0","jest":"^29.7.0","nodemon":"^3.0.1","parcel":"^2.10.1","prettier":"^3.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.1","ts-pegjs":"^4.2.1","typescript":"^5.4.2","yargs":"^17.7.2"},"scripts":{"build":"parcel build --no-cache","lint":"eslint . --fix","prettify":"prettier . --write","compile":"yarn build && node cmd.js compile","compile-run":"yarn build && node cmd.js compile-run","compile-wat":"yarn build && node cmd.js compile-to-wat","gen-c-ast":"yarn build && node cmd.js generate-c-ast","gen-p-c-ast":"yarn build && node cmd.js generate-processed-c-ast","gen-wat-ast":"yarn build && node cmd.js generate-wat-ast","test":"yarn build && NODE_OPTIONS=--experimental-vm-modules jest","unit-test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=unit_tests","check":"tsc --noEmit"},"dependencies":{"bignumber.js":"^9.1.2","peggy":"^3.0.2","wabt":"^1.0.32"},"_id":"@benmurphyy/ctowasm@1.0.11","dist":{"shasum":"b126ab279a696deddde65523f7a573190bde7dce","integrity":"sha512-eQ9caRw26N0TdlXA5rGsoDSgGpg5DpoWNSZeK2tK79N4gJWhO2f7tgwfSfEl0BiPhSEIUzqhvhyZYRQ0WTKVSw==","tarball":"https://registry.npmjs.org/@benmurphyy/ctowasm/-/ctowasm-1.0.11.tgz","fileCount":8,"unpackedSize":12034649,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeuNpULLOHN8eM5rq8H9T6bL7tbqVFZX2rukvz4X2eYAIhAMVMdvNVFj2U//EqhZ3bPjsxYbY/cQR8RPuf2WclaMrj"}]},"_npmUser":{"name":"benmurphyy","email":"ghjben@gmail.com"},"directories":{},"maintainers":[{"name":"benmurphyy","email":"ghjben@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ctowasm_1.0.11_1711438272526_0.7107182298968999"},"_hasShrinkwrap":false},"1.0.12":{"name":"@benmurphyy/ctowasm","version":"1.0.12","description":"Browser-based Typescript compiler from C to Webassembly","repository":{"type":"git","url":"git+ssh://git@github.com/source-academy/c-slang.git"},"author":{"name":"benmurphyy","email":"47269122+benmurphyy@users.noreply.github.com"},"license":"MIT","type":"module","source":"src/index.ts","main":"dist/index.js","targets":{"main":{"includeNodeModules":{}}},"types":"dist/index.d.ts","devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-transform-modules-commonjs":"^7.22.15","@babel/preset-env":"^7.23.2","@babel/preset-typescript":"^7.23.3","@jest/globals":"^29.6.4","@parcel/config-default":"^2.10.1","@parcel/packager-ts":"2.10.1","@parcel/transformer-inline-string":"2.10.1","@parcel/transformer-js":"^2.10.1","@parcel/transformer-react-refresh-wrap":"^2.10.1","@parcel/transformer-typescript-types":"2.10.1","@types/jest":"^29.5.12","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^6.4.0","@typescript-eslint/parser":"^6.4.0","babel-jest":"^29.7.0","eslint":"^8.47.0","eslint-config-prettier":"^9.0.0","eslint-plugin-unused-imports":"^3.0.0","jest":"^29.7.0","nodemon":"^3.0.1","parcel":"^2.10.1","prettier":"^3.0.2","ts-jest":"^29.1.2","ts-node":"^10.9.1","ts-pegjs":"^4.2.1","typescript":"^5.4.2","yargs":"^17.7.2"},"scripts":{"build":"parcel build --no-cache","lint":"eslint . --fix","prettify":"prettier . --write","compile":"yarn build && node cmd.js compile","compile-run":"yarn build && node cmd.js compile-run","compile-wat":"yarn build && node cmd.js compile-to-wat","gen-c-ast":"yarn build && node cmd.js generate-c-ast","gen-p-c-ast":"yarn build && node cmd.js generate-processed-c-ast","gen-wat-ast":"yarn build && node cmd.js generate-wat-ast","test":"yarn build && NODE_OPTIONS=--experimental-vm-modules jest","unit-test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=unit_tests","check":"tsc --noEmit"},"dependencies":{"bignumber.js":"^9.1.2","peggy":"^3.0.2","wabt":"^1.0.32"},"_id":"@benmurphyy/ctowasm@1.0.12","gitHead":"a7995cad446f0b1d7dbcf4270b644ed61e8b6942","bugs":{"url":"https://github.com/source-academy/c-slang/issues"},"homepage":"https://github.com/source-academy/c-slang#readme","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-1Trv00NArYSe2I1Nk8y6DoCXtoaCgt5MQXckbNduYgt0woVtKm4yd3KhdCtOz9xMj4pCEQuWZN5oJaCvowONwQ==","shasum":"9cba380cc70bbe861613d5c65cba57360ac6ef14","tarball":"https://registry.npmjs.org/@benmurphyy/ctowasm/-/ctowasm-1.0.12.tgz","fileCount":6,"unpackedSize":12034649,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsZjLAtED23aDvKvTddA348HOTOdaBW5J2eOnCJDp/KwIgeOtL4JkUoq6vjE5AwnDDlu4Agjnx8E6F/mf596qE5WQ="}]},"_npmUser":{"name":"benmurphyy","email":"ghjben@gmail.com"},"directories":{},"maintainers":[{"name":"benmurphyy","email":"ghjben@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ctowasm_1.0.12_1711438647423_0.11002925511078643"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-26T07:30:13.807Z","1.0.7":"2024-03-26T07:30:14.086Z","modified":"2024-03-26T07:37:28.274Z","1.0.11":"2024-03-26T07:31:12.697Z","1.0.12":"2024-03-26T07:37:27.640Z"},"maintainers":[{"name":"benmurphyy","email":"ghjben@gmail.com"}],"description":"Browser-based Typescript compiler from C to Webassembly","repository":{"type":"git","url":"git+ssh://git@github.com/source-academy/c-slang.git"},"author":{"name":"benmurphyy","email":"47269122+benmurphyy@users.noreply.github.com"},"license":"MIT","readme":"# ctowasm\n\nC compiler to Webassembly\n\n# Instructions\n\n## Build\n\nRun `yarn` first to download all dependencies.\nThen run `yarn build` to build the bundle. All the final bundle will be in a single index.js file in the [/build](/build) folder\n\n## Commands\n\nHere are some commands you can run during development for testing and using ctowasm locally.\n\n`yarn compile < C input filepath > [-o <output filepath>]` - compiles the c program specified by the filepath, and places output at specified filepath (_output/a.out_ by default)\n\n`yarn generate-c-ast < C input filepath > [-o <output filepath>]` - generates the C AST for the input file, and converts it to JSON and stores the output in specified filepath (_output/c-ast.json_) by default.\n\n`yarn generate-wat-ast < C input filepath > [-o <output filepath>]` - generates the WAT AST for the input file, and converts it JSON and stores the output in the specified filepath (_output/wat-ast.json_) by default\n","readmeFilename":"README.md","homepage":"https://github.com/source-academy/c-slang#readme","bugs":{"url":"https://github.com/source-academy/c-slang/issues"}}