Help language development. Donate to The Perl Foundation

META6 cpan:JSTOWE last updated on 2021-08-09

Do things with Raku [META files](


## Synopsis

The below will generate the  *META6.json* for this module.

use META6;

my $m =   name        => 'META6',
                     version     =>'0.0.1'),
                     auth        => 'github:jonathanstowe',
                     api         => '1.0',
                     description => 'Work with Raku META files',
                     raku-version   =>'6.*'),
                     depends     => ['JSON::Class:ver<0.0.15+>', 'JSON::Name' ],
                     test-depends   => <Test JSON::Fast>,
                     tags        => <devel meta utils>,
                     authors     => ['Jonathan Stowe <[email protected]>'],
                     source-url  => '',
                     support     =>
                        source => ''
                     provides => {
                        META6 => 'lib/',
                     license     => 'Artistic',
                     production  => False,
                     meta-version   => 1,


print $;

my $m = => './META6.json');
$m<version description> = v0.0.2, 'Work with Raku META files even better';
say 'Modules in the distribution: ' ~ $m<provides>.keys.join(', ');
spurt('./META6.json', $;
## Description

This provides a representation of the Raku [META
files]( specification -
the META file data can be read, created , parsed and written in a manner
that is conformant with the specification.

Where they are known about it also makes allowance for "customary"
usage in existing software (such as installers and so forth.)

The intent of this is allow the generation and testing of META files for
module authors, so it can provide meta-information whether the attributes
are mandatory as per the spec and where known the places that "customary"
attributes are used,

### to-json

See [JSON::Fast to-json()]( for options. `sorted-keys`
is recommended if you intend to modify the same file multiple times.

## Installation

Assuming you have a working Rakudo installation you should be able to install this with *zef* :

    # From the source directory
    zef install .

    # Remote installation

    zef install META6

## Support

Suggestions/patches are welcomed via [github](

I'm particulary interested in knowing about "customary" (i.e. non-spec)
fields that are being used in the wild and in what software so I can
add them if necessary.

## Licence

This free software.

Please see the [LICENCE](LICENCE) file in the distribution for the details.

© Jonathan Stowe 2015 - 2021