perl-module-path 0.11.0

Perl module name/path conversion utilities
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented4 out of 4 items with examples
  • Size
  • Source code size: 10.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.18 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • EffortlessMetrics/perl-lsp
    0 1 46
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • EffortlessSteven

perl-module-path

Perl module name/path conversion utilities.

Scope

  • Convert module names to Perl module paths: Foo::Bar -> Foo/Bar.pm
  • Convert module paths/keys to module names: Foo/Bar.pm -> Foo::Bar
  • Convert source file paths to module names for rename workflows
  • Normalize legacy package separators: Foo'Bar -> Foo::Bar
  • Normalize both / and \\ separators

API

  • normalize_package_separator(module_name)
  • module_name_to_path(module_name)
  • module_path_to_name(module_path)
  • file_path_to_module_name(file_path)