{"id":17651039,"url":"https://github.com/tilap/mongoose-plugin-updatedat","last_synced_at":"2025-03-30T08:27:28.086Z","repository":{"id":57302177,"uuid":"57038455","full_name":"tilap/mongoose-plugin-updatedat","owner":"tilap","description":"Mongoose plugin to add a updated_at property to schema","archived":false,"fork":false,"pushed_at":"2016-04-25T12:07:51.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T03:47:45.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tilap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-25T12:06:52.000Z","updated_at":"2016-04-25T12:08:09.000Z","dependencies_parsed_at":"2022-09-20T16:41:01.772Z","dependency_job_id":null,"html_url":"https://github.com/tilap/mongoose-plugin-updatedat","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fmongoose-plugin-updatedat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fmongoose-plugin-updatedat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fmongoose-plugin-updatedat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fmongoose-plugin-updatedat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilap","download_url":"https://codeload.github.com/tilap/mongoose-plugin-updatedat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246293926,"owners_count":20754346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-23T11:40:02.540Z","updated_at":"2025-03-30T08:27:28.067Z","avatar_url":"https://github.com/tilap.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿Mongoose plugin updatedat [![NPM version][npm-image]][npm-url]\n============================\n\nSimple mongoose plugin to add a updated_at property to your schema, that automatically update with timestamp on change.\n\n## Install\n\n```\nnpm install --save mongoose-plugin-updatedat\n```\n\n## Usage\n\n```\nconst Schema = require('mongoose').Schema;\nconst mongoosePluginUpdatedAt = require('mongoose-plugin-updatedat');\n\nlet MySchema = new Schema({ ... });\nMySchema.plugin(mongoosePluginUpdatedAt);\n```\n\n## Options\n\nAvailable options:\n- ```index```: if you want to index the property\n- ```name```: the name of the field - default is updated_at\n\n### Example\n\n```\nconst Schema = require('mongoose').Schema;\nconst mongoosePluginUpdatedAt = require('mongoose-plugin-updatedat');\n\nlet MySchema = new Schema({ ... });\nMySchema.plugin(mongoosePluginUpdatedAt, {\n  index: true,\n  name: 'updated_at_custome_name',\n});\n```\n\n## License\n\nMIT\n\n\n[npm-image]: https://img.shields.io/npm/v/mongoose-plugin-updatedat.svg?style=flat\n[npm-url]: https://npmjs.org/package/mongoose-plugin-updatedat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilap%2Fmongoose-plugin-updatedat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilap%2Fmongoose-plugin-updatedat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilap%2Fmongoose-plugin-updatedat/lists"}