Update readme and package.json following repo change
This commit is contained in:
parent
d51129843c
commit
475e30ba45
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "ods-xlsx",
|
||||
"name": "@odfjs/odfjs",
|
||||
"version": "0.13.0",
|
||||
"type": "module",
|
||||
"main": "./scripts/node.js",
|
||||
@ -11,6 +11,9 @@
|
||||
"start": "http-server -c-1 .",
|
||||
"test": "ava"
|
||||
},
|
||||
"repository": {
|
||||
"url": "https://github.com/odfjs/odfjs.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
|
||||
@ -18,7 +18,7 @@ Small lib to parse/understand .ods and .xsls files in the browser and node.js
|
||||
### Install
|
||||
|
||||
```sh
|
||||
npm i https://github.com/DavidBruant/ods-xlsx.git#v0.13.0
|
||||
npm i https://github.com/odfjs/odfjs.git#v0.13.0
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -39,8 +39,47 @@ const data = {
|
||||
]
|
||||
}*/
|
||||
|
||||
|
||||
/*
|
||||
const templatePath = join(import.meta.dirname, '../tests/data/légumes-de-saison.odt')
|
||||
const data = {
|
||||
légumesSaison : [
|
||||
{
|
||||
saison: 'Printemps',
|
||||
légumes: [
|
||||
'Asperge',
|
||||
'Betterave',
|
||||
'Blette'
|
||||
]
|
||||
},
|
||||
{
|
||||
saison: 'Été',
|
||||
légumes: [
|
||||
'Courgette',
|
||||
'Poivron',
|
||||
'Laitue'
|
||||
]
|
||||
},
|
||||
{
|
||||
saison: 'Automne',
|
||||
légumes: [
|
||||
'Poireau',
|
||||
'Potiron',
|
||||
'Brocoli'
|
||||
]
|
||||
},
|
||||
{
|
||||
saison: 'Hiver',
|
||||
légumes: [
|
||||
'Radis',
|
||||
'Chou de Bruxelles',
|
||||
'Frisée'
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
const templatePath = join(import.meta.dirname, '../tests/data/tableau-simple.odt')
|
||||
const data = {
|
||||
annéeConsos : [
|
||||
@ -52,13 +91,16 @@ const data = {
|
||||
{ année: 2020, conso: 37859.246},
|
||||
]
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
const templatePath = join(import.meta.dirname, '../tests/data/template-avec-image.odt')
|
||||
|
||||
const data = {
|
||||
commentaire : `J'adooooooore 🤩 West covinaaaaaaaaaaa 🎶`
|
||||
}
|
||||
*/
|
||||
|
||||
const odtTemplate = await getOdtTemplate(templatePath)
|
||||
const odtResult = await fillOdtTemplate(odtTemplate, data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user