Search code examples
node.jssecuritymongooseprismanpm-vulnerabilities

which package can be an alternative for mongooes dummy


const dummy = require('mongoose-dummy');

I want replace this package to its similar one in my code, its dependent module mpath and uuid creating issue. Is there any alternative package.


Solution

  • You could use the mongoose-data-faker package to generate random data based on your Mongoose schema.

    Another alternative is to use the faker package to generate data.