@socialgouv/csv-anonymify
TypeScript icon, indicating that this package has built-in type declarations

1.1.18 • Public • Published

@socialgouv/csv-anonymify

Anonymise un CSV

Les types de données sont détectés avec @socialgouv/match-entities.

Usage

NodeJs

import fs from "fs";
import { anonymify } from "@socialgouv/csv-anonymify";

const input = fs.createReadStream("./sample.csv");

const anonymiser = anonymify(input, {
  onProgress: console.log,
  fields: [{ name: "civilite", type: "sex" }],
});

anonymiser.pipe(fs.createWriteStream("./sample-anonymised.csv"));

Browser :

See demo application in /apps/csv using FileReader streaming APIs

Readme

Keywords

none

Package Sidebar

Install

npm i @socialgouv/csv-anonymify

Weekly Downloads

7

Version

1.1.18

License

Apache-2.0

Unpacked Size

13.5 kB

Total Files

6

Last publish

Collaborators

  • revolunet
  • socialgroovybot