{"id":20139047,"url":"https://github.com/threeletters/config","last_synced_at":"2026-06-08T12:02:26.702Z","repository":{"id":57171491,"uuid":"65735194","full_name":"ThreeLetters/Config","owner":"ThreeLetters","description":"Config parser","archived":false,"fork":false,"pushed_at":"2016-10-17T19:02:36.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T18:13:47.810Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThreeLetters.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-08-15T13:43:16.000Z","updated_at":"2016-12-03T04:51:01.000Z","dependencies_parsed_at":"2022-08-24T13:21:26.487Z","dependency_job_id":null,"html_url":"https://github.com/ThreeLetters/Config","commit_stats":null,"previous_names":["ajs-development/config"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeLetters%2FConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeLetters%2FConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeLetters%2FConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThreeLetters%2FConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThreeLetters","download_url":"https://codeload.github.com/ThreeLetters/Config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582555,"owners_count":19985846,"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-11-13T21:43:47.820Z","updated_at":"2026-06-08T12:02:26.671Z","avatar_url":"https://github.com/ThreeLetters.png","language":"JavaScript","funding_links":["https://paypal.me/andrews54757"],"categories":[],"sub_categories":[],"readme":"[![NPM] (https://img.shields.io/badge/Module-Npm-blue.svg)] (https://www.npmjs.com/package/SmartConfig)\n[![Donate] (https://img.shields.io/badge/Donate-Paypal-brightgreen.svg)] (https://paypal.me/andrews54757)\n[![Build Status](https://travis-ci.org/AJS-development/Config.svg?branch=master)](https://travis-ci.org/AJS-development/Config)\n\n\n# Config\nSmart Config parser\n\n\n## Usage\n```\nvar configs = {\n hello: \"Jstring\", // Joined string (joining spaces EG: \"hello I am andrew\" -\u003e \"hello I am andrew\")\n my: \"Ostring\", // Object string (spaces create new object EG: \"hello I am andrew\" -\u003e object [\"hello\",\"I\",\"am\",\"andrew\"]) \n name: \"string\", // string (no spaces. EG: \"hello i am andrew\" -\u003e \"hello\")\n is: \"Oint\", // Joined numbers (EG: \"1 2 3 4 5\" -\u003e Object[1,2,3,4,5])\n andrew: \"Int\" // Int (EG: \"1,2,3,4,5\" -\u003e 1)\n}\nvar default = {\nhello: \"blah blah blah with spaces\",\nmy: [\"I\",\"am\",\"an\",\"object\"],\nname: \"Iamastring\",\nis: [1,2,3,4,5],\nandrew: 1\n}\nconst ConfigLoader = require('SmartConfigs')\nconst configLoader = new ConfigLoader(configs,default) // default is optional\n```\n\n\nTo parse\n\n\n`configLoader.parse(string)` with FS `configLoader.parse(fs.readFileSync(\"./myconfigfile\",\"utf8\"))`\n\n\nTo stringify\n\n\n`configLoader.stringify(configstostringify)` with FS `fs.writeFileSync(\"./myconfigfile\",configLoader.stringify(configstostringify))`\n\n\n## Documentation\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreeletters%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreeletters%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreeletters%2Fconfig/lists"}