{"repo":"ton-community/func-js","free":true,"listed":false,"github":"https://github.com/ton-community/func-js","clone":"git clone https://github.com/ton-community/func-js.git","description":"FunC compiler package","language":"TypeScript","stars":252,"topics":["blockchain","compiler","func","ton","webassembly","hacktoberfest"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"TON FunC compiler Cross-platform bindings and CLI for TON FunC compiler. Features - 🚀 No need to compile of download FunC binaries - 📦 Works both in Node.js & WEB (WASM support is required) - ⚙️ Compiles straight to BOC with code Cell - ⚙️ Assembly is returned for debugging purposes - 📁 Does not depend on filesystem How it works Internally this package uses both FunC compiler and Fift interpreter combined to single lib compiled to WASM. Simple schema: Sources for the internal lib could be found here. Install or CLI Usage: npx func-js ./stdlib.fc ./wallet.fc --boc ./output.boc See more output options by running npx func-js -h Usage example Instead of a source map, you can also use a source array, like so: Notice that passing a sources array makes targets optional (if not passed, targets will be set to filename s of sources in the order they were given). You can also pass a resolver (a function of type (path: string) = string ) into sources instead of a source map object or array, for example if main.fc and all contracts used by it (such as stdlib.fc ) are located in the same directory as the compiling .ts/.js file, you can use the following: And the resolver will be called for each required source file (including the targets) using the same name as in the #include statement. Note however that the resolver must be synchronous and must return a string; if you need the resolver to get files from the network, you can repeatedly run the compiler with the known sources, check if ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ton-community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ton-community/func-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}