{"library":"js-to-sh","type":"library","category":null,"description":"js-to-sh (v1.2.1) is a JavaScript-to-ShellScript transpiler that uses abstract syntax trees (AST) to convert JavaScript syntax into bash scripts. It is experimental and unstable, with limited support for complex JavaScript features (classes are converted to functions but not fully implemented). The library provides a CLI tool and a programmatic API for transpiling .js/.ts files into .sh files. It includes built-in global helper functions for shellscript behaviors (file checks, command existence, etc.). The project is under active development with a small community, and it depends on Node.js >=20. Key differentiators: direct AST-based conversion, global variable injection for shell-style checks, and both ESM and CommonJS support.","language":"javascript","status":"active","version":"1.2.1","tags":["javascript","transpiler","transpiler-js","transpilers","builder","shellscript","js-to-sh","ast","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install js-to-sh","imports":["import { Transpiler } from 'js-to-sh'","import 'js-to-sh'","import type { Transpiler } from 'js-to-sh'"]},{"cmd":"yarn add js-to-sh","imports":[]},{"cmd":"pnpm add js-to-sh","imports":[]}],"homepage":null,"github":"https://github.com/Ashu11-A/Transpiler-JS-Shell","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/js-to-sh","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}