* Ajout de création de fichier .ods * Ajout d'un outil pour créer un fichier .ods + rajout de styles.xml et meta.xml pour peut-être plaire à LibreOffice * Créer des fichiers considérés corrompus-mais-réparables LibreOffice * Creating libre-office-validated ods files * readme with ods creation
36 lines
772 B
JavaScript
36 lines
772 B
JavaScript
//@ts-check
|
|
|
|
import {createOdsFile} from '../scripts/node.js'
|
|
|
|
const content = new Map([
|
|
[
|
|
'La feuille',
|
|
[
|
|
[
|
|
{value: '37', type: 'float'},
|
|
{value: '26', type: 'string'}
|
|
]
|
|
],
|
|
],
|
|
[
|
|
"L'autre feuille",
|
|
[
|
|
[
|
|
{value: '1', type: 'string'},
|
|
{value: '2', type: 'string'},
|
|
{value: '3', type: 'string'},
|
|
{value: '5', type: 'string'},
|
|
{value: '8', type: 'string'}
|
|
]
|
|
],
|
|
]
|
|
])
|
|
|
|
// @ts-ignore
|
|
const ods = await createOdsFile(content)
|
|
|
|
//console.log('writableHighWaterMark', process.stdout.writableHighWaterMark) // 16384
|
|
|
|
process.stdout.write(new Uint8Array(ods))
|
|
|