@mtayel/anonymize2

1.0.4 • Public • Published

Strapi plugin anonymize

the plugin filters data from collections and anonymizes all fields that do not appear in a whitelist. It expects a boolean field “anonymized” in the collection that is to be anonymized.

Status

WIP - Work in Progress/Planning

Install

yarn add @cross-solution/strapi-plugin-anonymize

Configuration:

The default configuration is as follows (you must add it to ./config/plugin.js):

module.exports = {
  // ...
  "anonymize": {
    cron: "*/10 * * * * *",
    enabled: true,
    config: {
      anonymize: [
        {
          collection: "Strapi UID, eg. plugin::bfa.bfa-beruf",
          filters: {
            foo: {
              $contains: "bar",
            },
          },
          limit: 4,
          keepData: ['field1', 'field2'],
        },
      ]
    }
  }
  // ...
}

Readme

Keywords

none

Package Sidebar

Install

npm i @mtayel/anonymize2

Weekly Downloads

290

Version

1.0.4

License

MIT

Unpacked Size

147 kB

Total Files

44

Last publish

Collaborators

  • mtayel