{"id":13744860,"url":"https://github.com/arthur-debert/printf-as3","last_synced_at":"2026-01-30T11:56:28.705Z","repository":{"id":66755729,"uuid":"990417","full_name":"arthur-debert/printf-as3","owner":"arthur-debert","description":"A printf like facility for Actionscript, loosely inspired by Python's.","archived":false,"fork":false,"pushed_at":"2012-10-11T03:13:16.000Z","size":5494,"stargazers_count":49,"open_issues_count":2,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-15T16:41:46.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.stimuli.com.br/trane/2009/feb/21/printf-as3/","language":"ActionScript","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/arthur-debert.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":"2010-10-15T16:49:10.000Z","updated_at":"2024-03-17T06:25:38.000Z","dependencies_parsed_at":"2023-02-20T11:00:29.690Z","dependency_job_id":null,"html_url":"https://github.com/arthur-debert/printf-as3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur-debert%2Fprintf-as3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur-debert%2Fprintf-as3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur-debert%2Fprintf-as3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur-debert%2Fprintf-as3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthur-debert","download_url":"https://codeload.github.com/arthur-debert/printf-as3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253191765,"owners_count":21868803,"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-08-03T05:01:17.432Z","updated_at":"2026-01-30T11:56:28.700Z","avatar_url":"https://github.com/arthur-debert.png","language":"ActionScript","readme":"# printf-as3\n\nFunction for doing string variable substitutions in AS3.\nInspired by python's print and strtime.\n\n### Usage\n\n    import br.com.stimuli.string.printf;\n    // objects are substitued in the other they appear\n\n    printf(\"This is an %s library for creating %s\", \"Actioscript 3.0\", \"strings\");\n    // outputs: \"This is an Actioscript 3.0 lybrary for creating strings\";\n    // you can also format numbers:\n\n    printf(\"You can also display numbers like PI: %f, and format them to a fixed precision, such as PI with 3 decimal places %.3f\", Math.PI, Math.PI);\n    // outputs: \" You can also display numbers like PI: 3.141592653589793, and format them to a fixed precision, such as PI with 3 decimal places 3.142\"\n    // Instead of positional (the order of arguments to print f, you can also use propertie of an object):\n    var userInfo : Object = {\n    \"name\": \"Arthur Debert\",\n    \"email\": \"arthur@stimuli.com.br\",\n    \"website\":\"http://www.stimuli.com.br/\",\n    \"ocupation\": \"developer\"\n    }\n\n    printf(\"My name is %(name)s and I am a %(ocupation)s. You can read more on my personal %(website)s, or reach me through my %(email)s\", userInfo);\n    // outputs: \"My name is Arthur Debert and I am a developer. You can read more on my personal http://www.stimuli.com.br/, or reach me through my arthur@stimuli.com.br\"\n    // you can also use date parts:\n    var date : Date = new Date();\n    printf(\"Today is %d/%m/%Y\", date, date, date);\n\nFor more examples, see the test suit in [test-proj/src][tests]...\n\n### License\n[MIT][mit] licensed.\n\n[arthur-debert]:http://www.stimuli.com.br\n[mit]:http://mit-license.org\n[tests]:./printf-as3/tree/master/test-proj/src","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur-debert%2Fprintf-as3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthur-debert%2Fprintf-as3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur-debert%2Fprintf-as3/lists"}