{"id":15698264,"url":"https://github.com/yurijmikhalevich/cat-settings","last_synced_at":"2025-05-09T01:12:28.245Z","repository":{"id":57194881,"uuid":"10094877","full_name":"yurijmikhalevich/cat-settings","owner":"yurijmikhalevich","description":"Simple settings module for node.js, providing simple API to access and modify application settings, stored in JSON-file","archived":false,"fork":false,"pushed_at":"2014-07-30T17:23:33.000Z","size":199,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-09T01:12:19.510Z","etag":null,"topics":["cat-settings","javascript","json","settings"],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/cat-settings","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yurijmikhalevich.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":"2013-05-16T06:07:08.000Z","updated_at":"2021-08-18T21:57:25.000Z","dependencies_parsed_at":"2022-09-16T05:14:18.986Z","dependency_job_id":null,"html_url":"https://github.com/yurijmikhalevich/cat-settings","commit_stats":null,"previous_names":["39dotyt/cat-settings"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurijmikhalevich%2Fcat-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurijmikhalevich%2Fcat-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurijmikhalevich%2Fcat-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yurijmikhalevich%2Fcat-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yurijmikhalevich","download_url":"https://codeload.github.com/yurijmikhalevich/cat-settings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171272,"owners_count":21865297,"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":["cat-settings","javascript","json","settings"],"created_at":"2024-10-03T19:24:40.687Z","updated_at":"2025-05-09T01:12:28.225Z","avatar_url":"https://github.com/yurijmikhalevich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cat-settings\n\nSimple settings module for node.js, providing simple API to access and modify application settings, stored in JSON-file.\nUses jsonfile module.\n\nJSON-file should store an object.\n\nInstallation:\n\n```bash\n$ npm install cat-settings\n```\n\nExample:\n\n```javascript\nvar settings = require('cat-settings').loadSync(__dirname + '/settings.json');\n\n// You may also use async load if it makes sense\nsettings.load(null, function(err) {\n  if (err) {\n    // ...\n  }\n});\n\napp.set('port', settings.app.port);\n\n// ...\n\nsettings.cat = {};\nsettings.cat.name = 'Leopold';\nsettings.saveSync();\n\n// You may also use async save if it makes sense\nsettings.save(null, function(err) {\n  if (err) {\n    // ...\n  }\n});\n```\n\nWhen you pass file argument to load or save methods, you also change file, where settings are stored, in most cases\nyou should pass it only when you call load first time.\n\nAfter, you can require cat-settings whenever you want and access parameters, without calling load.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyurijmikhalevich%2Fcat-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyurijmikhalevich%2Fcat-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyurijmikhalevich%2Fcat-settings/lists"}