{"id":21974688,"url":"https://github.com/parser3/als.utils","last_synced_at":"2026-02-07T02:02:37.952Z","repository":{"id":56946315,"uuid":"74457573","full_name":"parser3/als.utils","owner":"parser3","description":"Utils Component.","archived":false,"fork":false,"pushed_at":"2016-11-28T15:54:09.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-24T16:43:44.167Z","etag":null,"topics":["als","package","parser3"],"latest_commit_sha":null,"homepage":null,"language":"OpenEdge ABL","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/parser3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-22T09:42:23.000Z","updated_at":"2016-11-22T09:43:57.000Z","dependencies_parsed_at":"2022-08-21T07:50:58.850Z","dependency_job_id":null,"html_url":"https://github.com/parser3/als.utils","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/parser3/als.utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parser3%2Fals.utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parser3%2Fals.utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parser3%2Fals.utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parser3%2Fals.utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parser3","download_url":"https://codeload.github.com/parser3/als.utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parser3%2Fals.utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29184977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"online","status_checked_at":"2026-02-07T02:00:07.217Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["als","package","parser3"],"created_at":"2024-11-29T15:47:12.234Z","updated_at":"2026-02-07T02:02:37.940Z","avatar_url":"https://github.com/parser3.png","language":"OpenEdge ABL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Als/Utils\n\nНабор классов из пакета [Lib](http://www.parser.ru/lib/lib/).\n\nВключает в себя:\n- [Als/Utils/Lib](src/Lib.p)\n```ruby\n###########################################################################\n# cut trailing and leading chars $sChars (whitespaces by default) for $sText\n@trim[sText;sChars]\n\n\n###########################################################################\n# print link to $sURI with attributes $uAttr (string or hash) if $sURI specified, otherwise just print $sLabel\n@href[sURI;sLabel;uAttr]\n\n\n###########################################################################\n# set location header for redirecting to $sURI and prevent caching\n# $.bExternal option makes redirect \n@location[sURI;hParam]\n\n\n###########################################################################\n# check email format\n@isEmail[sEmail]\n\n\n###########################################################################\n# print $iNum as a binary string\n@dec2bin[iNum;iLength]\n\n\n###########################################################################\n# makes hash of tables from $tData. if $sKeyColumn is not specified 'parent_id' will be used\n@createTreeHash[tData;sKeyColumn]\n\n\n###########################################################################\n# print number. options $.iFracLength, $.sThousandDivider and $.sDecimalDivider are available\n@numberFormat[dNumber;hParam]\n\n\n###########################################################################\n# looks over hash elements in specified order\n@foreach[hHash;sKeyName;sValueName;jCode;sSeparator;sDirection]\n\n\n###########################################################################\n# returns hash with parser version\n@getParserVersion[]\n\n\n###########################################################################\n# every odd call returns $sColor1, every even - $sColor2, without parameters - reset sequence\n@color[sColor1;sColor2]\n\n\n###########################################################################\n# creates 2-levels hash\n@create2LevelHash[uData;sField1;sField2]\n```\n\n- [Als/Utils/Doc](src/Doc.p)\n```ruby\n###########################################################################\n# print $xDoc as string without DOCTYPE and XML declaration\n@toString[xDoc]\n```\n\n- [Als/Utils/Node](src/Node.p)\n```ruby\n############################################################\n# print $xNode as string\n@toString[xNode;sRootTag]\n\n\n############################################################\n# print $xNode VALUE as string: \u003caaa\u003e\u003cbbb\u003eccc\u003c/bbb\u003e\u003c/aaa\u003e =\u003e \"\u003cbbb\u003eccc\u003c/bbb\u003e\"\n@valueToString[xNode;sRootTag]\n\n\n############################################################\n# go through all nodes in $hNodeList and execute $jCode\n@foreach[hNodeList;hNodeName;sNode;sAttr;jCode;sSeparator]\n\n\n############################################################\n# go through all children for $xParent and execute $jCode\n@foreachChild[xParent;hNodeName;sNode;sAttr;jCode;sSeparator]\n\n\n############################################################\n# get children of $xParent as hash\n@getChildren[xParent;hNodeName]\n```\n\n- [Als/Utils/Attrs](src/Attrs.p)\n- [Als/Utils/Cached](src/Cached.p)\n- [Als/Utils/Convert](src/Convert.p)\n- [Als/Utils/Logger](src/Logger.p)\n- [Als/Utils/LibComp](src/LibComp.p)\n\n---\n\n## Installation\n\n```bash\n$ composer require als/utils\n```\n\n---\n\n## References\n\n- Bugs and feature request are tracked on [GitHub](https://github.com/parser3/als.utils/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparser3%2Fals.utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparser3%2Fals.utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparser3%2Fals.utils/lists"}