{"id":17651051,"url":"https://github.com/tilap/mongoose-plugin-createdat","last_synced_at":"2025-03-30T08:27:24.021Z","repository":{"id":57302168,"uuid":"57037925","full_name":"tilap/mongoose-plugin-createdat","owner":"tilap","description":"Mongoose plugin to add a created_at property to schema","archived":false,"fork":false,"pushed_at":"2016-04-25T12:00:13.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T11:46:52.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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-25T11:56:50.000Z","updated_at":"2016-04-25T11:57:19.000Z","dependencies_parsed_at":"2022-09-20T16:40:54.182Z","dependency_job_id":null,"html_url":"https://github.com/tilap/mongoose-plugin-createdat","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-createdat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fmongoose-plugin-createdat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fmongoose-plugin-createdat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fmongoose-plugin-createdat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilap","download_url":"https://codeload.github.com/tilap/mongoose-plugin-createdat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246293837,"owners_count":20754330,"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:10.330Z","updated_at":"2025-03-30T08:27:24.001Z","avatar_url":"https://github.com/tilap.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿Mongoose plugin createdat [![NPM version][npm-image]][npm-url]\n============================\n\nSimple mongoose plugin to add a created_at property to your schema, set on object save at the first time.\n\n## Install\n\n```\nnpm install --save mongoose-plugin-createdat\n```\n\n## Usage\n\n```\nconst Schema = require('mongoose').Schema;\nconst mongoosePluginCreatedAt = require('mongoose-plugin-createat');\n\nlet MySchema = new Schema({ ... });\nMySchema.plugin(mongoosePluginCreatedAt);\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 created_at\n\n### Example\n\n```\nconst Schema = require('mongoose').Schema;\nconst mongoosePluginCreatedAt = require('mongoose-plugin-createat');\n\nlet MySchema = new Schema({ ... });\nMySchema.plugin(mongoosePluginCreatedAt, {\n  index: true,\n  name: 'created_at_custome_name',\n});\n```\n\n## License\n\nMIT\n\n\n[npm-image]: https://img.shields.io/npm/v/mongoose-plugin-createdat.svg?style=flat\n[npm-url]: https://npmjs.org/package/mongoose-plugin-createdat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilap%2Fmongoose-plugin-createdat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilap%2Fmongoose-plugin-createdat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilap%2Fmongoose-plugin-createdat/lists"}