{"id":15470444,"url":"https://github.com/sirwumpus/erlang-pl","last_synced_at":"2025-03-28T12:40:47.134Z","repository":{"id":56824360,"uuid":"399642221","full_name":"SirWumpus/erlang-pl","owner":"SirWumpus","description":"Erlang proplists support functions.","archived":false,"fork":false,"pushed_at":"2023-01-03T17:12:24.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T15:45:51.094Z","etag":null,"topics":["erlang","property-lists"],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/SirWumpus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-25T00:34:16.000Z","updated_at":"2022-01-09T15:46:12.000Z","dependencies_parsed_at":"2023-02-01T08:02:09.331Z","dependency_job_id":null,"html_url":"https://github.com/SirWumpus/erlang-pl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Ferlang-pl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Ferlang-pl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Ferlang-pl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SirWumpus%2Ferlang-pl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SirWumpus","download_url":"https://codeload.github.com/SirWumpus/erlang-pl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246034113,"owners_count":20712851,"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":["erlang","property-lists"],"created_at":"2024-10-02T02:04:42.849Z","updated_at":"2025-03-28T12:40:47.091Z","avatar_url":"https://github.com/SirWumpus.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Erlang Property Lists (epl)\n===========================\n\nProperty-lists support functions.  Before the adoption of the `maps` library and syntax, `proplists` were the closest means to expressing a JSON like structure or Erlang's decoded ASN.1 objects (pain in the arse to work with).\n\n\nData Types\n----------\n\n* Plist           :: proplists:proplist()\n* Path            :: [atom() | pos_integer()]\n* Value           :: term()\n* Default         :: term()\n* PathsValues     :: [{Path, Value}]\n* Map             :: map()\n\n\nExports\n-------\n\n### epl:get_path(Plist0, Path) -\u003e Value | undefined\n\nGiven a `Path` into `Plist0`, return the value found; otherwise undefined if not found.\n\n- - -\n### epl:get_path(Plist0, Path, Default) -\u003e Value | Default\n\nGiven a `Path` into `Plist0`, return the value found; otherwise a `Default` value if not found.\n\n- - -\n### epl:is_plist(Thing) -\u003e true | false\n\nReturn true if `Thing` adheres to a formal definition of a Plist (suitable to convert to JSON), where each list element is either an atom (short hand of `{Atom, true}`) or 2-tuple Key-Value.\n\n- - -\n### epl:set_path(Plist0, Path, Value) -\u003e Plist1\n\nGiven a `Path` into `Plist0`, insert or replace a value.  If the `Path` specified does not exist, it will be created.\n\n- - -\n### epl:set_paths(Plist0, PathsValues) -\u003e Plist1\n\nGiven a list of paths and values, insert or replace one or more values in `Plist0`.  See `set_path/3`.\n\n- - -\n### epl:to_map(Plist) -\u003e Map\n\nConvert the nested `Plist` into a nested `Map`.\n\n- - -\n### epl:from_map(Map) -\u003e Plist\n\nConvert the nested `Map` into a nested `Plist`.\n\n\nCopyright\n---------\n\nCopyright 2021, 2022 by Anthony Howe.  All rights reserved.\n\n\nMIT License\n-----------\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirwumpus%2Ferlang-pl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsirwumpus%2Ferlang-pl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirwumpus%2Ferlang-pl/lists"}