gdpr-person-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

gdpr-person-generator

Anonymization tool to comply with EU data protection law, GDRP.

How-To

const { GdprPersonGenerator, Seed } = require("gdpr-person-generator");
// import { GdprPersonGenerator } from "gdpr-person-generator");

const seed = new Seed("some-seed-of-your-choice");
const generator = new GdprPersonGenerator(seed);
const person = generator.generatePerson("male");

You must get the following result because of the seed "some-seed-of-your-choice"

{
  "dob": "1987-11-02",
  "name": "Samad",
  "surname": "Niyazov"
}

Limitations

  • only "uzbeksitan" is among the supported countries
  • only first name, last name and date of birth are generated
  • only deterministic approach

TODOs

  • 🤷‍♂️

Package Sidebar

Install

npm i gdpr-person-generator

Weekly Downloads

6

Version

1.0.1

License

MIT

Unpacked Size

20.6 kB

Total Files

15

Last publish

Collaborators

  • pharrukh