This project extends the functionality of google-spreadsheet and adds the ability to control TextFormatRun
// Libraries
npm i lodash @types/lodash googleapis cheerio google-spreadsheet
// usage:
// getting cell from GoogleSpreadsheetWorksheet
cell.clearAllFormatting();
const text = `lorem ipsum`;
Object.assign(cell, htmlToTextFormatRuns(text));
// ...saveUpdatedCells();
Available HTML tags:
u, s, b, i, a, span
available "style" attribite with css params:
color
font-weight
font-style
font-size
text-decoration
Examples:
'α'
`link text`
Made in Ukraine πΊπ¦ with β€οΈ
https://github.com/lortonx