Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 631 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 631 Bytes

carbon-screenshots

Npm package to generate carbon images

The Package consist in parsing text and get the Carbon Screenshot engine

Install

npm install carbon-screenshots

or

yarn add carbon-screenshots

Example

import { phraseGenerator } from "carbon-screenshots";

const text = 'Adding a text to carbon to get its screenshot'

 const { body, image } = await phraseGenerator(
        text,
        "json",
        "Seti",
        `${__dirname}/../public/images/`,
      );


constole.log(body, image); //`body` returns the text you added , `image` will return the image path.