Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/logotip4ik/r2vnode
Transforms Vue VNode to React to generate satori images!
https://github.com/logotip4ik/r2vnode
Last synced: 2 days ago
JSON representation
Transforms Vue VNode to React to generate satori images!
- Host: GitHub
- URL: https://github.com/logotip4ik/r2vnode
- Owner: logotip4ik
- Created: 2024-01-10T14:30:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-11T14:01:13.000Z (7 months ago)
- Last Synced: 2024-09-18T13:52:25.153Z (2 months ago)
- Language: TypeScript
- Size: 183 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# r2vnode
Transforms Vue VNode to simple React VNode. This gives us ability to generate svg's with satori with vue components/jsx.
## Usage
1. Install
```bash
yarn add r2vnode
```2. Write jsx and transform with `vue` function
```tsx
import satroi from 'satori'
import { vue } from 'r2vnode'
const message = 'Hello from Vue!'
const svg = await satori(
vue(
{message}
something like this !
),
satoriOptions
)
```