Package Exports
- express-seeder
- express-seeder/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-seeder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
About Express Seeder
Express Seeder is a lightweight library which is a solution to a problem lots of developers face on the backend: Seeding a database
How to Install
npm i express-seederHow to Use
const { Seeder } = require('express-seeder')
Seeder(data, model)Data Format
A json or Javascript object format which should be an array of object
[
{
"question": "which of these names did not reflect in the book of Genesis?",
"answers": "Enoch, Ham, Elizabeth",
"correct_answer": "Elizabeth",
"book_of_bible": "Genesis"
},