{"repo":"ilovepixelart/ts-migrate-mongoose","free":true,"listed":false,"github":"https://github.com/ilovepixelart/ts-migrate-mongoose","clone":"git clone https://github.com/ilovepixelart/ts-migrate-mongoose.git","description":"A migration framework for Mongoose, built with TypeScript.","language":"TypeScript","stars":93,"topics":["migrations","mongodb","mongoose","nodejs","typescript","cli","programmatic","npm-package","cli-app","npm"],"license":"MIT","category":"cli-tools","readme_excerpt":"ts-migrate-mongoose A migration framework for Mongoose, built with TypeScript. \\ \\ \\ Motivation ts-migrate-mongoose is a migration framework for mongoose \\ I need a way to manage database migrations for mongoose models, run them from the CLI or programmatically, and keep track of which migrations have been applied. It should support both ESM and CommonJS, work with all major Node.js frameworks, and be flexible enough to handle complex migration scenarios. Supports and tested with CI tests against mongoose 6.12.2 , 7.6.4 , 8.23.0 , and 9.4.1 . Features - Stores migration state in MongoDB - Flexible configuration using migrate.json , migrate.ts , .env - Utilizes mongoose models during migrations - Supports async/await in migrations - Run migrations from the CLI or programmatically - Prune old migrations and sync new migrations - Create custom templates for migrations - Run individual migration up/down using -s, --single - Supports ESM and CommonJS Installation mongoose is a peer dependency — install it alongside ts-migrate-mongoose . Or globally: Example Works with any Node.js framework — Express, Fastify, Koa, Hono, Nest, etc. \\ How to use it with: - Express: ts-express-tsx, ts-express-esbuild - Nest: ts-express-nest Migrations and alias imports If you are using alias imports in your project, you can use tsconfig.json paths to resolve them for your project. Configuration If you don't want to provide -d or --uri flag in CLI or Programmatic mode, you can configure it. \\ Create a","default_branch":null,"files":null,"tree":[],"storefront":"/r/ilovepixelart","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ilovepixelart/ts-migrate-mongoose/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}