0.3.3 • Published 9 months ago

mongohide v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

mongohide

NodeJS CLI to hide data in MongoDB. Can handle nested sub-documents fields and arrays. Internally uses faker.js to generate fake data.

oclif Version GitHub license

Usage

npx mongohide \
--fields="name, phone" \
--uri="mongodb://localhost:27017" \
--db="test"

Specify one or more collections to include or exclude

npx mongohide \
--fields="name, phone" \
--uri="mongodb://localhost:27017" \
--db="test" \
--includeCollections="orders, customers" \
--excludeCollections="products"

:warning: Collections names are case sensitive. Fields are not.

Specify faker locale data

npx mongohide \
--fields="name, phone" \
--uri="mongodb://localhost:27017" \
--db="test" \
--locale="pt"

Customize field value

npx mongohide \
--fields="number:string.numeric, name" \
--uri="mongodb://localhost:27017" \
--db="test" \

Don't need to specify the field type, they will be inferred from the field name (default is lorem.word). If you want to specify the type, use the format field:type. See faker.js for available types.

Contributions are welcome! Please open an issue or submit a pull request.

0.3.3

9 months ago

0.3.2

9 months ago

0.3.1

10 months ago

0.3.0

10 months ago

0.2.4

10 months ago

0.2.3

10 months ago

0.2.2

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago