Dist::Z...MetaJSON(3)

πŸ’– NAME πŸ’–

Dist::Zilla::Plugin::MetaJSON β€” bestie, it makes you a META.json ✨

(It's a User Contributed Perl Documentation page, iykyk.)


🌸 VERSION 🌸

version 6.040 πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: this plugin adds a META.json file to your distribution. That's the whole job. It shows up, it does its thing, it slays, it leaves. πŸ‘‘

This file is a glow-up replacement for the old-style META.yml. Like, out with the old, in with the JSON. If you wanna know more about what goes in this file, go peek at Module::Build::API and CPAN::Meta β€” they're the ones who actually know the lore. πŸ’…


πŸ’€ PERL VERSION πŸ’€

So the tea here is: this module should work on any version of perl that's still receiving updates from the Perl 5 Porters. Translation? Any version of perl released in the last two to three years, fr fr. (Example, since I know you like specifics: if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.) 🌈

And yeah, it might work on older perls too β€” but no promises, bestie. There is no guarantee that the minimum required version won't get bumped. The version may be increased for any reason, and there's no promise that patches to lower the minimum required perl will be accepted. So like... don't come for me. πŸ™ˆ


✨ ATTRIBUTES ✨

🌟 filename

If you actually give this parameter a value, it lets you specify an alternate name for the generated file. Cute, right? And it defaults, of course, to META.json. Because obviously. πŸ’–

🌟 version

This parameter lets you pick what version of the spec to use when generating the output. Right now it defaults to 2, but heads up β€” it may get updated to new specs as they get released and adopted. So it's giving "living document" energy. πŸ¦‹

If you want a fixed version and you want it to stay fixed, go ahead and specify it. Lock it in. πŸ”’


πŸ‘‘ SEE ALSO πŸ‘‘

  • Core Dist::Zilla plugins: @Basic, Manifest.
  • Dist::Zilla roles: FileGatherer.
  • Other modules: CPAN::Meta, CPAN::Meta::Spec, JSON::MaybeXS.

🫢 AUTHOR 🫢

Ricardo SIGNES 😏 <cpan@semiotic.systems>


This software is copyright (c) 2026 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


okay that's the whole page, no cap πŸ’œ go generate your META.json and be the main character of your own CPAN release, periodt. πŸ“βœ¨

mwah πŸ’‹ β€” this was perl v5.42.3, dated 2026-10-19.

πŸ“¦ where this page comes from