{"id":18926768,"url":"https://github.com/ladjs/store-ip-address","last_synced_at":"2025-04-15T13:33:18.517Z","repository":{"id":25194355,"uuid":"102931707","full_name":"ladjs/store-ip-address","owner":"ladjs","description":"Stores a user's IP address in the background for Lad","archived":false,"fork":false,"pushed_at":"2023-12-06T22:50:24.000Z","size":469,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-09-21T14:12:10.198Z","etag":null,"topics":["address","ip","ipv4","ipv6","koa","lad","mongoose","passport","security","store"],"latest_commit_sha":null,"homepage":"https://lad.js.org","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/ladjs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-09T06:13:13.000Z","updated_at":"2019-12-10T19:15:33.000Z","dependencies_parsed_at":"2024-06-21T04:10:55.907Z","dependency_job_id":null,"html_url":"https://github.com/ladjs/store-ip-address","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.2777777777777778,"last_synced_commit":"0bbb1c6f0bd31c8a01fbc0528c18e0dc7b35ab46"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fstore-ip-address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fstore-ip-address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fstore-ip-address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fstore-ip-address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ladjs","download_url":"https://codeload.github.com/ladjs/store-ip-address/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223397361,"owners_count":17139056,"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":["address","ip","ipv4","ipv6","koa","lad","mongoose","passport","security","store"],"created_at":"2024-11-08T11:17:06.876Z","updated_at":"2024-11-08T11:17:08.574Z","avatar_url":"https://github.com/ladjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [**@ladjs/store-ip-address**](https://github.com/ladjs/store-ip-address)\n\n[![build status](https://img.shields.io/travis/ladjs/store-ip-address.svg)](https://travis-ci.org/ladjs/store-ip-address)\n[![code coverage](https://img.shields.io/codecov/c/github/ladjs/store-ip-address.svg)](https://codecov.io/gh/ladjs/store-ip-address)\n[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)\n[![license](https://img.shields.io/github/license/ladjs/store-ip-address.svg)](\u003c\u003e)\n\n\u003e Stores user's IP address in the background for Lad\n\n\n## Table of Contents\n\n* [Install](#install)\n* [Usage](#usage)\n* [Contributors](#contributors)\n* [License](#license)\n\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install @ladjs/store-ip-address\n```\n\n[yarn][]:\n\n```sh\nyarn add @ladjs/store-ip-address\n```\n\n\n## Usage\n\n\u003e With standard [logger][]:\n\nApp:\n\n```js\nconst StoreIPAddress = require('@ladjs/store-ip-address');\n\n// ...\n\nconst storeIPAddress = new StoreIPAddress();\napp.use(storeIPAddress.middleware);\n```\n\nMongoose user model:\n\n```js\nconst storeIPAddress = new StoreIPAddress();\nUser.plugin(storeIPAddress.plugin);\n```\n\n\u003e With custom [logger][] instance:\n\nApp:\n\n```js\nconst StoreIPAddress = require('@ladjs/store-ip-address');\nconst Logger = require('@ladjs/logger');\n\n// ...\n\nconst storeIPAddress = new StoreIPAddress({ logger: new Logger() });\napp.use(storeIPAddress.middleware);\n```\n\n\u003e With custom fields to store on user model instead of `ip` and `last_ips`:\n\nApp:\n\n```js\nconst StoreIPAddress = require('@ladjs/store-ip-address');\nconst Logger = require('@ladjs/logger');\n\n// ...\n\nconst storeIPAddress = new StoreIPAddress({\n  ip: 'ip_address',\n  lastIps: 'last_ip_addresses'\n});\n\napp.use(storeIPAddress.middleware);\n```\n\nMongoose user model:\n\n```js\nconst storeIPAddress = new StoreIPAddress({\n  ip: 'ip_address',\n  lastIps: 'last_ip_addresses'\n});\n\nUser.plugin(storeIPAddress.plugin);\n```\n\n\n## Contributors\n\n| Name           | Website                    |\n| -------------- | -------------------------- |\n| **Nick Baugh** | \u003chttp://niftylettuce.com/\u003e |\n\n\n## License\n\n[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)\n\n\n## \n\n[npm]: https://www.npmjs.com/\n\n[yarn]: https://yarnpkg.com/\n\n[logger]: https://github.com/ladjs/logger\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fladjs%2Fstore-ip-address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fladjs%2Fstore-ip-address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fladjs%2Fstore-ip-address/lists"}