{"id":23705730,"url":"https://github.com/pouchdb/pouchdb-size","last_synced_at":"2025-09-03T11:30:54.233Z","repository":{"id":24198043,"uuid":"27589350","full_name":"pouchdb/pouchdb-size","owner":"pouchdb","description":"Adds disk_size to info()'s output for your leveldown backed PouchDB's.","archived":false,"fork":false,"pushed_at":"2017-03-07T08:27:04.000Z","size":15,"stargazers_count":5,"open_issues_count":22,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-21T05:42:32.373Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pouchdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-05T11:53:21.000Z","updated_at":"2022-04-10T14:27:21.000Z","dependencies_parsed_at":"2022-08-22T11:40:59.928Z","dependency_job_id":null,"html_url":"https://github.com/pouchdb/pouchdb-size","commit_stats":null,"previous_names":["marten-de-vries/pouchdb-size"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pouchdb/pouchdb-size","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fpouchdb-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fpouchdb-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fpouchdb-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fpouchdb-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pouchdb","download_url":"https://codeload.github.com/pouchdb/pouchdb-size/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouchdb%2Fpouchdb-size/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273436002,"owners_count":25105527,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-30T14:56:52.323Z","updated_at":"2025-09-03T11:30:53.952Z","avatar_url":"https://github.com/pouchdb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"pouchdb-size\n============\n\n[![Build Status](https://travis-ci.org/marten-de-vries/pouchdb-size.svg?branch=master)](https://travis-ci.org/marten-de-vries/pouchdb-size)\n[![Dependency Status](https://david-dm.org/marten-de-vries/pouchdb-size.svg)](https://david-dm.org/marten-de-vries/pouchdb-size)\n[![devDependency Status](https://david-dm.org/marten-de-vries/pouchdb-size/dev-status.svg)](https://david-dm.org/marten-de-vries/pouchdb-size#info=devDependencies)\n\nAdds disk_size to info()'s output for your *down backed PouchDB's.\n\nTested with leveldown, sqldown, jsondown, locket and medeadown. When it\ncan't determine the database size, it falls back to the default\n``info()`` output.\n\nExample\n-------\n\n```bash\nnpm install pouchdb pouchdb-size\n```\n\n```javascript\n//index.js\nvar PouchDB = require('pouchdb');\nPouchDB.plugin(require('pouchdb-size'));\n\nvar db = new PouchDB('test');\ndb.installSizeWrapper();\ndb.info().then(function (resp) {\n\t//resp will contain disk_size\n})\n```\n\nAPI\n---\n\n- ``db.installSizeWrapper()``\n\n  wraps ``db.info()`` in such a way that it will include a ``disk_size``\n  property in its output for supported database backends.\n\n- ``db.getDiskSize([callback])``\n\n  like PouchDB, this method both returns a Promise and accepts a\n  callback. Either returns an error or the disk size of the current db.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpouchdb%2Fpouchdb-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpouchdb%2Fpouchdb-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpouchdb%2Fpouchdb-size/lists"}