mongoose-index-cli

    1.0.20 • Public • Published

    Mongoose Index Creation Process

    Simple package that will auto-generate the index file for the Schemas needed on Mongoose.

    npm install command:

    npm install -g mongoose-index-cli 
    

    By default the code will look for the models in your root file structure. You can designate the folder where you have stored your Schema files by adding the path to the argument.

    Examples to execute call in the terminal

    create index.js in the models folder in the root directory:
    mongoose
    
    create index.js in the schema folder in the root directory:
    mongoose ./schema
    
    create index.js in the schema folder in a folder called db in root directory:
    mongoose ./db/schema

    Install

    npm i mongoose-index-cli

    DownloadsWeekly Downloads

    2

    Version

    1.0.20

    License

    MIT

    Unpacked Size

    2.53 kB

    Total Files

    3

    Last publish

    Collaborators

    • krtcotmo2