@agencebio/rosetta-cultures v1.8.5
rosetta-cultures
Traduction des codes CPF en code PAC — et vice-versa — en code JavaScript.
Installer
npm install @agencebio/rosetta-cultures
L'installation déclenche automatiquement la construction du fichier cpf.json
Comment mettre à jour les fichiers CSV ?
data/nomenclature.csv
Sur Nomenclature produits CPFBIO :
1. naviguer dans l'onglet CPFBIO
2. Fichier
↦ Télécharger
↦ CSV
3. renommer et remplacer le fichier téléchargé
data/correspondance.csv
Sur Nomenclature produits CPFBIO :
1. naviguer dans l'onglet PAC
2. Fichier
↦ Télécharger
↦ CSV
3. renommer et remplacer le fichier téléchargé
data/correspondance-bureau-veritas.csv
Sur Nomenclature BV :
1. naviguer dans l'onglet PAC
2. Fichier
↦ Télécharger
↦ CSV
3. renommer et remplacer le fichier téléchargé
data/correspondance-geofolia.csv
Sur Correspondance_cultures_Geofolia_CPFBIO :
1. Fichier
↦ Télécharger
↦ CSV
2. Lancer cette commande :
csvcut --columns 1,3 "path/to/export.csv" > ./data/correspondance-geofolia.csv
data/cepages.csv
En utilisant le logiciel csvkit.
in2csv --skip-lines 2 /path/to/ListeCepage_20-12-20xx.xls > ./data/cepages.csv
Comment mettre à jour la correspondance ?
Le fichier data/cpf.json
contient le recoupement des fichiers CSV. Il se met à jour avec la commande suivante :
npm run build
Comment mettre en ligne une nouvelle version ?
Le module npm est publié automatiquement dès qu'un nouveau tag Git est publié.
npm version minor
git push --all
27 days ago
27 days ago
27 days ago
3 months ago
3 months ago
27 days ago
27 days ago
27 days ago
4 months ago
4 months ago
4 months ago
4 months ago
8 months ago
9 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago