From 5765b11a8d9aeb8666a2edb9d7146e62badbdbf3 Mon Sep 17 00:00:00 2001 From: Marco Montalbano Date: Sat, 11 May 2024 22:28:36 +0200 Subject: [PATCH] docs: update all README.md --- packages/cli/README.md | 8 ++-- packages/output-components-as-es6/README.md | 11 +++-- packages/output-components-as-svg/README.md | 11 +++-- packages/output-components-as-svgr/README.md | 16 ++++--- .../output-components-as-svgstore/README.md | 10 ++-- packages/output-styles-as-css/README.md | 11 +++-- packages/output-styles-as-less/README.md | 11 +++-- packages/output-styles-as-sass/README.md | 11 +++-- .../README.md | 11 +++-- packages/transform-svg-with-svgo/README.md | 47 ++++++++++--------- 10 files changed, 89 insertions(+), 58 deletions(-) diff --git a/packages/cli/README.md b/packages/cli/README.md index f43f918a..2d2f607a 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -64,7 +64,7 @@ You can create you own: ```ts // with promise -module.exports = options => { +export default options => { return (svg) => new Promise((resolve, reject) => { resolve(svg); }); @@ -73,7 +73,7 @@ module.exports = options => { ```ts // with async/await -module.exports = options => { +export default options => { return async (svg) => { return svg; }; @@ -100,7 +100,7 @@ An output function receives a list of pages, in which each page contains compone You can create you own: ```ts -module.exports = options => { +export default options => { return async pages => { console.clear(); console.log(JSON.stringify(pages)); @@ -144,7 +144,7 @@ An output function receives a list of styles. You can create you own: ```ts -module.exports = options => { +export default options => { return async styles => { console.clear(); console.log(JSON.stringify(styles)); diff --git a/packages/output-components-as-es6/README.md b/packages/output-components-as-es6/README.md index 5965021d..7607505f 100644 --- a/packages/output-components-as-es6/README.md +++ b/packages/output-components-as-es6/README.md @@ -27,13 +27,15 @@ export const figmaLogo = `