{"id":18981391,"url":"https://github.com/awncorp/data-object-name","last_synced_at":"2026-06-20T04:03:14.713Z","repository":{"id":77256395,"uuid":"300956942","full_name":"awncorp/data-object-name","owner":"awncorp","description":"Name Class for Perl 5","archived":false,"fork":false,"pushed_at":"2020-10-03T20:34:17.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-11T04:12:43.053Z","etag":null,"topics":["object-oriented","perl","perl5"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awncorp.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-10-03T19:05:00.000Z","updated_at":"2022-07-24T20:56:33.000Z","dependencies_parsed_at":"2023-02-23T17:15:52.454Z","dependency_job_id":null,"html_url":"https://github.com/awncorp/data-object-name","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/awncorp/data-object-name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awncorp","download_url":"https://codeload.github.com/awncorp/data-object-name/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-name/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34556497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["object-oriented","perl","perl5"],"created_at":"2024-11-08T16:09:43.268Z","updated_at":"2026-06-20T04:03:14.692Z","avatar_url":"https://github.com/awncorp.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n\n    Data::Object::Name\n\nABSTRACT\n\n    Name Class for Perl 5\n\nSYNOPSIS\n\n      use Data::Object::Name;\n    \n      my $name = Data::Object::Name-\u003enew('FooBar/Baz');\n\nDESCRIPTION\n\n    This package provides methods for converting \"name\" strings.\n\nMETHODS\n\n    This package implements the following methods:\n\n dist\n\n      dist() : Str\n\n    The dist method returns a package distribution representation of the\n    name.\n\n    dist example #1\n\n        # given: synopsis\n      \n        my $dist = $name-\u003edist; # FooBar-Baz\n\n file\n\n      file() : Str\n\n    The file method returns a file representation of the name.\n\n    file example #1\n\n        # given: synopsis\n      \n        my $file = $name-\u003efile; # foo_bar__baz\n\n format\n\n      format(Str $method, Str $format) : Str\n\n    The format method calls the specified method passing the result to the\n    core \"sprintf\" function with itself as an argument.\n\n    format example #1\n\n        # given: synopsis\n      \n        my $file = $name-\u003eformat('file', '%s.t'); # foo_bar__baz.t\n\n label\n\n      label() : Str\n\n    The label method returns a label (or constant) representation of the\n    name.\n\n    label example #1\n\n        # given: synopsis\n      \n        my $label = $name-\u003elabel; # FooBar_Baz\n\n lookslike_a_file\n\n      lookslike_a_file() : Bool\n\n    The lookslike_a_file method returns truthy if its state resembles a\n    filename.\n\n    lookslike_a_file example #1\n\n        # given: synopsis\n      \n        my $is_file = $name-\u003elookslike_a_file; # falsy\n\n lookslike_a_label\n\n      lookslike_a_label() : Bool\n\n    The lookslike_a_label method returns truthy if its state resembles a\n    label (or constant).\n\n    lookslike_a_label example #1\n\n        # given: synopsis\n      \n        my $is_label = $name-\u003elookslike_a_label; # falsy\n\n lookslike_a_package\n\n      lookslike_a_package() : Bool\n\n    The lookslike_a_package method returns truthy if its state resembles a\n    package name.\n\n    lookslike_a_package example #1\n\n        # given: synopsis\n      \n        my $is_package = $name-\u003elookslike_a_package; # falsy\n\n lookslike_a_path\n\n      lookslike_a_path() : Bool\n\n    The lookslike_a_path method returns truthy if its state resembles a\n    file path.\n\n    lookslike_a_path example #1\n\n        # given: synopsis\n      \n        my $is_path = $name-\u003elookslike_a_path; # truthy\n\n lookslike_a_pragma\n\n      lookslike_a_pragma() : Bool\n\n    The lookslike_a_pragma method returns truthy if its state resembles a\n    pragma.\n\n    lookslike_a_pragma example #1\n\n        # given: synopsis\n      \n        my $is_pragma = $name-\u003elookslike_a_pragma; # falsy\n\n    lookslike_a_pragma example #2\n\n        use Data::Object::Name;\n      \n        my $name = Data::Object::Name-\u003enew('[strict]');\n      \n        my $is_pragma = $name-\u003elookslike_a_pragma; # truthy\n\n new\n\n      new(Str $arg) : Object\n\n    The new method instantiates the class and returns an object.\n\n    new example #1\n\n        use Data::Object::Name;\n      \n        my $name = Data::Object::Name-\u003enew;\n\n    new example #2\n\n        use Data::Object::Name;\n      \n        my $name = Data::Object::Name-\u003enew('FooBar');\n\n package\n\n      package() : Str\n\n    The package method returns a package name representation of the name\n    given.\n\n    package example #1\n\n        # given: synopsis\n      \n        my $package = $name-\u003epackage; # FooBar::Baz\n\n path\n\n      path() : Str\n\n    The path method returns a path representation of the name.\n\n    path example #1\n\n        # given: synopsis\n      \n        my $path = $name-\u003epath; # FooBar/Baz\n\nAUTHOR\n\n    Al Newkirk, awncorp@cpan.org\n\nLICENSE\n\n    Copyright (C) 2011-2019, Al Newkirk, et al.\n\n    This is free software; you can redistribute it and/or modify it under\n    the terms of the The Apache License, Version 2.0, as elucidated in the\n    \"license file\"\n    \u003chttps://github.com/iamalnewkirk/data-object-name/blob/master/LICENSE\u003e.\n\nPROJECT\n\n    Wiki \u003chttps://github.com/iamalnewkirk/data-object-name/wiki\u003e\n\n    Project \u003chttps://github.com/iamalnewkirk/data-object-name\u003e\n\n    Initiatives \u003chttps://github.com/iamalnewkirk/data-object-name/projects\u003e\n\n    Milestones\n    \u003chttps://github.com/iamalnewkirk/data-object-name/milestones\u003e\n\n    Contributing\n    \u003chttps://github.com/iamalnewkirk/data-object-name/blob/master/CONTRIBUTE.md\u003e\n\n    Issues \u003chttps://github.com/iamalnewkirk/data-object-name/issues\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fdata-object-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawncorp%2Fdata-object-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fdata-object-name/lists"}