{"id":20492062,"url":"https://github.com/zotonic/z_stdlib","last_synced_at":"2025-04-05T07:04:15.578Z","repository":{"id":5073302,"uuid":"6235367","full_name":"zotonic/z_stdlib","owner":"zotonic","description":"Zotonic standard function library","archived":false,"fork":false,"pushed_at":"2025-02-03T14:32:51.000Z","size":738,"stargazers_count":21,"open_issues_count":3,"forks_count":14,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-29T06:05:00.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://zotonic.com","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ctasca/magento-elasticsearch-module","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zotonic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-10-15T22:23:22.000Z","updated_at":"2025-01-10T11:22:58.000Z","dependencies_parsed_at":"2024-01-29T16:33:09.730Z","dependency_job_id":"f6be899f-2fe9-43ae-a5e2-b16d9cbe6d58","html_url":"https://github.com/zotonic/z_stdlib","commit_stats":{"total_commits":284,"total_committers":10,"mean_commits":28.4,"dds":"0.23943661971830987","last_synced_commit":"e293b25eb3557b48ccb8b1cceb544c710198f211"},"previous_names":[],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fz_stdlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fz_stdlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fz_stdlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Fz_stdlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zotonic","download_url":"https://codeload.github.com/zotonic/z_stdlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299831,"owners_count":20916190,"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-15T17:27:29.135Z","updated_at":"2025-04-05T07:04:15.558Z","avatar_url":"https://github.com/zotonic.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Test](https://github.com/zotonic/z_stdlib/workflows/Test/badge.svg)\n[![Hex.pm Version](https://img.shields.io/hexpm/v/zotonic_stdlib.svg)](https://hex.pm/packages/zotonic_stdlib)\n[![Hex.pm Downloads](https://img.shields.io/hexpm/dt/zotonic_stdlib.svg)](https://hex.pm/packages/zotonic_stdlib)\n\nzotonic_stdlib\n==============\n\nZotonic standard library - a library with hopefully useful functions\n\nExtracted from Zotonic, the Erlang CMS http://zotonic.com/\n\n\nInstallation\n------------\n\nDue to historical reasons the library is called `z_stdlib`.\nIt should be checked out as `zotonic_stdlib`:\n\n    git clone https://github.com/zotonic/z_stdlib.git zotonic_stdlib\n\nThe library is also on Hex https://hex.pm/packages/zotonic_stdlib\n\nIn your rebar.config file, use Hex (for rebar3):\n\n    {deps, [\n        zotonic_stdlib\n    ]}.\n\nOr, directly git (rebar2):\n\n    {deps, [\n        {zotonic_stdlib, \".*\", {git, \"https://github.com/zotonic/z_stdlib.git\", \"master\"}}\n    ]}.\n\n\nModules\n-------\n\nThe following modules are provided:\n\n\n### z_convert\n\nConversion routines for:\n\n * all common data types (binary, boolean, integer, etc.).\n * dates: to_utc, to_local, iso8601 parsing\n * json, convert to simple json constructs\n * IP address conversions\n\n\n### z_css\n\nStrict CSS parser and sanitizer.\n\n### z_cssmin\n\nCSS minifier\n\n### z_dateformat\n\nRoutines for formatting dates.\nExample:\n\n    z_dateformat:format({{2008,12,10},{15,30,0}}, \"Y-m-d H:i:s\", [ {tz, \"GMT\"} ]).\n\n\n### z_email_dnsbl\n\nCheck IP addresses for their presence on DNS block- or allowlists.\n\n\n### z_email_utils\n\nTest if an email address is syntactically valid. Extract email address from a text.\n\n\n### z_filelib\n\nConvenience function to make nested directories.\n\n\n### z_html\n\nHTML routines like escape, unescape, sanitize, etc.\n\n\n### z_ip_address\n\nMatch an IP address against lists, check if an IP address is a non routable LAN address.\n\n\n### z_jsmin\n\nJavaScript minimizer, removes spaces, comments and newlines.\n\n\n### z_string\n\nString routines. To uppercase, lowercase, truncate, trim, utf8 checks, and more.\n\n\n### z_svg\n\nSVG sanitizer.\n\n\n### z_tempfile\n\nTemporary file routines. Make tempfiles, including watch dog process to clean up the file.\n\n\n### z_ubf\n\nUBF-A encoding and decoding routines. Safe for atoms and maximum memory size.\n\n\n### z_url\n\nURL encode, decode and more.\n\n\n### z_url_fetch\n\nFetch the first N bytes of a URL. Protection against too large return body.\n\n\n### z_url_metadata\n\nFetch URL, extract metadata like mime type, title, description, images etc.\n\n\nTests\n-----\n\nTo run the test set:\n\n    make test\n\nAll tests should pass.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotonic%2Fz_stdlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzotonic%2Fz_stdlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotonic%2Fz_stdlib/lists"}