Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spraakbanken/swell-pseudonymize-js
Pseudonymizer for the SweLL-project
https://github.com/spraakbanken/swell-pseudonymize-js
pseudonymisation swell
Last synced: about 1 month ago
JSON representation
Pseudonymizer for the SweLL-project
- Host: GitHub
- URL: https://github.com/spraakbanken/swell-pseudonymize-js
- Owner: spraakbanken
- License: mit
- Created: 2018-10-03T13:19:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T19:48:56.000Z (almost 2 years ago)
- Last Synced: 2023-03-24T11:29:39.564Z (almost 2 years ago)
- Topics: pseudonymisation, swell
- Language: TypeScript
- Size: 1.71 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pseudonymization module
## Usage
```
import {pseudonymize} from 'pseudonymization'pseudonymize('Karlstad', ['city']) // returns random city
pseudonymize('Karlstad', ['city', '1']) // returns random city
pseudonymize('Karlstad', ['city', '1']) // returns Karlstad againpseudonymize('Karlstad', ['city', '2']) // returns random city, but not Karlstad
```
## Bugs
`package.json` contains too many dependencies due to copy-paste, find out which
ones are needed for the tests.## Changing data
For now, all the named entities live in `src/names.ts` and may be changed there.
## Development
Use `yarn test` and `yarn build` before committing.