This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { resolve } from 'path'; | |
import fs from 'fs/promises'; | |
async function walkIn(inputPath) { | |
const ls = await fs.readdir(inputPath, { withFileTypes: true }); | |
const files = await Promise.all(ls.map((dirent) => { | |
const res = resolve(inputPath, dirent.name); | |
return dirent.isDirectory() ? walkIn(res) : res; | |
})); | |
return [].concat(...files); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"startDate": "2000-07-01", | |
"endDate": "2000-08-01" | |
}, | |
{ | |
"startDate": "2001-07-01", | |
"endDate": "2001-08-15" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "StayCondition", | |
"internalConditionKey": 0, | |
"dateBand": { | |
"startDate": "2000-07-01", | |
"endDate": "2000-08-01" | |
} | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const https = require('https'); | |
const rp = require('request-promise-native'); | |
const cheerio = require('cheerio'); | |
const userCreds = { | |
e_mail: '', | |
password: '' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<producteurs xmlns="urn:x-telepac:fr.gouv.agriculture.telepac:echange-producteur" xmlns:gml="http://www.opengis.net/gml"><producteur numero-pacage="000000000" campagne="Courante"> | |
<demandeur certificat-environnemental="false"> | |
<identification-individuelle> | |
<identite> | |
<civilite>Monsieur</civilite> | |
<nom>NOM</nom> | |
<prenoms>PRENOM</prenoms> | |
</identite> | |
</identification-individuelle> |