Skip to content

jaywcjlove/code-image

Repository files navigation

Code Image

Buy me a coffee NPM Version Build & Deploy Docker Image Version (latest by date) Docker Image Size (latest by date) Docker Pulls

Create beautiful images of your source code.

Code Image

Using

import React from "react";
import CodeImage from '@wcj/code-image';

export default function App() {
  return (
    <CodeImage />
  );
}

Docker

docker pull wcjiang/code-image
# Or
docker pull ghcr.io/jaywcjlove/code-image:latest
docker run --name code-image --rm -d -p 9612:3000 wcjiang/code-image:latest
# Or
docker run --name code-image -itd -p 9612:3000 wcjiang/code-image:latest
# Or
docker run --name wxmp -itd -p 9612:3000 ghcr.io/jaywcjlove/code-image:latest

Visit the following URL in your browser

http://localhost:9612/

Development

  1. Install
npm install
  1. To develop, run the self-reloading build:
npm run build  # Compile packages      📦 @wcj/code-image
npm run watch  # Real-time compilation 📦 @wcj/code-image
  1. Run Document Website Environment:
npm run start

Contributors

As always, thanks to our amazing contributors!

Made with action-contributors.

License

Licensed under the MIT License.