bump readme version

This commit is contained in:
Hannaeko 2025-09-22 16:35:43 +02:00
parent 415a26e3f1
commit c677c7267b

View File

@ -18,7 +18,7 @@ Small lib to parse/understand .odf files (.odt, .ods) in the browser and node.js
### Install ### Install
```sh ```sh
npm i https://github.com/odfjs/odfjs.git#v0.29.0 npm i https://github.com/odfjs/odfjs.git#v0.30.0
``` ```
@ -30,7 +30,7 @@ import {tableRawContentToObjects, tableWithoutEmptyRows, getODSTableRawContent}
/** /**
* @param {ArrayBuffer} odsFile - content of an .ods file * @param {ArrayBuffer} odsFile - content of an .ods file
* @return {Promise<any[]>} * @return {Promise<any[]>}
*/ */
async function getFileData(odsFile){ async function getFileData(odsFile){
return getODSTableRawContent(odsFile) return getODSTableRawContent(odsFile)
.then(tableWithoutEmptyRows) .then(tableWithoutEmptyRows)
@ -38,9 +38,9 @@ async function getFileData(odsFile){
} }
``` ```
The return value is an array of objects where The return value is an array of objects where
the **keys** are the column names in the first row and the **keys** are the column names in the first row and
the **values** are automatically converted from the .ods files (which type numbers, strings, booleans and dates) the **values** are automatically converted from the .ods files (which type numbers, strings, booleans and dates)
to the appropriate JavaScript value to the appropriate JavaScript value
@ -88,7 +88,7 @@ odf.js proposes a template syntax
In an .odt file, write the following: In an .odt file, write the following:
```txt ```txt
Hey {nom}! Hey {nom}!
Your birthdate is {dateNaissance} Your birthdate is {dateNaissance}
``` ```
@ -158,4 +158,3 @@ npm run dev
I hope to be credited for the work on this repo I hope to be credited for the work on this repo
Everything written by me and contributors to this repo is licenced under **CC0 1.0 (Public Domain)** Everything written by me and contributors to this repo is licenced under **CC0 1.0 (Public Domain)**