Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@builder.io/mitosis-cli
Advanced tools
A CLI for Mitosis.
npm install -g @builder.io/mitosis-cli
mitosis compile --to=<format> < <input-file>
cat my-file.tsx | mitosis compile -t=<format>
mitosis compile -t=<format> <input-file>
Check the output from mitosis compile --help
.
Examples
mitosis compile -t react component.tsx
mitosis compile -t react < component.tsx
cat component.tsx | mitosis compile -t html -
mitosis compile -t react --out-dir build -- src/**/*.tsx
Supported formats for --to
are:
reactNative
solid
vue
react
template
html
customElement
mitosis
builder
swift
svelte
liquid
angular
Supported formats for --from
are:
mitosis
builder
liquid
Here are some recipes for standard tasks
cat components/postscript.lite.tsx |
mitosis compile -t builder - |
mitosis compile -f builder -t mitosis
find . -name '*lite.tsx' | entr make /_
mitosis
from the root of this repository breaks due to some
dynamic babel configuration look up--out-dir=<dir>
maintain the original
file extension of the input file, which doesn't make any sense in the case of
an html output.--out=<file>
does not support concatenating multiple files together.FAQs
mitosis CLI
The npm package @builder.io/mitosis-cli receives a total of 2,115 weekly downloads. As such, @builder.io/mitosis-cli popularity was classified as popular.
We found that @builder.io/mitosis-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 20 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.