1.0.5 • Published 2 years ago
carbon-screenshots v1.0.5
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.