{"id":16368889,"url":"https://github.com/apsdehal/configry","last_synced_at":"2026-02-26T23:30:16.346Z","repository":{"id":14000916,"uuid":"16702215","full_name":"apsdehal/Configry","owner":"apsdehal","description":"Configry is a config manager library for Javascript.","archived":false,"fork":false,"pushed_at":"2015-09-22T08:15:21.000Z","size":319,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T08:02:37.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"MobileChromeApps/cordova-plugin-background-app","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apsdehal.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-02-10T16:58:33.000Z","updated_at":"2015-03-18T12:09:49.000Z","dependencies_parsed_at":"2022-08-30T16:11:30.132Z","dependency_job_id":null,"html_url":"https://github.com/apsdehal/Configry","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FConfigry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FConfigry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FConfigry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2FConfigry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apsdehal","download_url":"https://codeload.github.com/apsdehal/Configry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869221,"owners_count":19710485,"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-11T02:54:06.873Z","updated_at":"2026-02-26T23:30:16.316Z","avatar_url":"https://github.com/apsdehal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Configry [![Build Status](https://travis-ci.org/apsdehal/Configry.svg?branch=1.1.3)](https://travis-ci.org/apsdehal/Configry)\n\nConfigry is a config manager library for Javascript. It uses localStorage to store persistent configurations in the browser. Use it woth your favorite tool like browserify or get a precompiled bundle from bower.\n\n# Configry is CommonJS version for captn3m0's [Configurator](https://github.com/captn3m0/Configurator)\n\n## Install\n\n```\n$ npm install --save configry\n```\nor\n\nDownload source from `build/Configry.js` and include `Configry.js` in your html\n\n`\u003cscript src=\"Configry.js\"\u003e\u003c/script\u003e`\n\n## Usage\n\nCreate a config object. The constructor takes two parameters :\n\n1. default: Object holding default configuration values\n2. persistent: Array of key strings for persistent configuration.\n\n```\nvar config= new Configry({sound:true,autoPlay:false,volume:60},['volume']);\n\n//volume property will persist even after refreshes using localstorage.\n\n//Set additional configuration options\n\nconfig.set(\"shuffle\",true,true);\n```\n## API\n\n.set takes three parameters:\n\n1. Key Name\n2. Value\n3. Persistent (true/false)\n\n```\nvar shuffleState = config.get('shuffle');\n//Will get the value of the config option.\n```\n\n### Localstorage clearing\nSince Configry stores the persistent config information in localstorage, you cannot clear localstorage using localStorage.clear any more. Instead use `config.clearLS()` function to clear the localStorage. It will clear localstorage, and write the persistent config keys back into localStorage.\n\n## Tests\n\nRun `grunt default` command to run tests on karma using phantomjs and jasmine. This task will also run the browserify task. For specific only test task run `grunt karma:unit`\n\n#Licence\n\nLicenced under MIT Licence. Feel free to fork/use.\n\nConfigry is build for [SDSLabs Muzi](https://sdslabs.co.in/muzi), a music player application for the IIT-Roorkee Campus.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Fconfigry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsdehal%2Fconfigry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Fconfigry/lists"}