{"id":31918184,"url":"https://github.com/pfist/figg","last_synced_at":"2026-04-18T01:32:17.651Z","repository":{"id":57235291,"uuid":"88126350","full_name":"pfist/figg","owner":"pfist","description":"A simple utility for managing YAML configuration files. Also supports JSON.","archived":false,"fork":false,"pushed_at":"2018-01-29T16:49:12.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T20:59:33.260Z","etag":null,"topics":["config","configuration","configuration-management","json","yaml","yml"],"latest_commit_sha":null,"homepage":"","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/pfist.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":"2017-04-13T04:55:07.000Z","updated_at":"2017-05-02T02:29:36.000Z","dependencies_parsed_at":"2022-08-31T18:33:54.276Z","dependency_job_id":null,"html_url":"https://github.com/pfist/figg","commit_stats":null,"previous_names":["nkpfstr/figg"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pfist/figg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfist%2Ffigg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfist%2Ffigg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfist%2Ffigg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfist%2Ffigg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfist","download_url":"https://codeload.github.com/pfist/figg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfist%2Ffigg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["config","configuration","configuration-management","json","yaml","yml"],"created_at":"2025-10-13T20:56:22.796Z","updated_at":"2026-04-18T01:32:17.644Z","avatar_url":"https://github.com/pfist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Figg\n\u003e A simple utility for managing YAML configuration files. Also supports JSON.\n\n[![Build Status](https://travis-ci.org/polymoon/figg.svg?branch=master)](https://travis-ci.org/polymoon/figg)\n\n## Install\nNPM:\n```\n$ npm install figg\n```\n\nYarn:\n```\n$ yarn add figg\n```\n\n## Usage\n```js\nconst Figg = require('figg')\nconst config = new Figg()\n\n// Add a single property\nconfig.set('name', 'John Div')\n\n// Add multiple properties\nconfig.set({\n  description: 'A stylish web designer',\n  url: 'http://johndiv.cool',\n  stylish: true\n})\n\n// Get a property\nconsole.log(config.get('name'))\n// 'John Div'\n\n// Save config file (config.yml by default)\nconfig.save()\n\n// Load existing config file as an object\nlet myConfig = config.load()\n```\n\n## API\n\n### Figg([options])\n\n#### options.name\nType: `string`\u003cbr\u003e\nDefault: `'config'`\n\nName of the config without the extension\n\n#### options.extension\nType: `string`\u003cbr\u003e\nDefault: `'.yml'`\n\nThe file extension used when loading and saving config files. Valid extensions are `'.yml'`, `'.yaml'` and `'.json'`.\n\n#### options.path\nType: `string`\u003cbr\u003e\nDefault: Current working directory\n\nPath to the directory where the config file is loaded/saved.\n\n#### Examples\n\nThis example uses the default options. In this case, Figg will load/save your config at `./config.yml`.\n```js\nconst config = new Figg()\n```\n\nIn this example, Figg will load/save your config at `./app/settings.json`.\n```js\nconst config = new Figg({\n  name: 'settings',\n  extension: '.json',\n  path: './app'\n})\n```\n\n### Instance Methods\n\n#### config.get(key)\n\nReturns the value of `key` if it exists.\n\n#### config.set(key, value)\n\nAdd a new property to the config.\n\n#### config.set(object)\n\nAdd multiple properties at once.\n\n#### config.has(key)\n\nCheck if a property exists.\n\n#### config.load()\n\nLoad a config file. Returns an object.\n\n#### config.save()\n\nSave a config file.\n\n## License\nMIT © Nick Pfisterer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfist%2Ffigg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfist%2Ffigg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfist%2Ffigg/lists"}