Serve List of Directories on your Command Line - Mojolicious::Plugin::Directory::Stylish

Today's fresh and healthy Perl information is how to serve the list of directories.

You can use Mojolicious::Plugin::Directory::Stylish. This is a Mojolicious plugin.

Installation

You can install Mojolicious::Plugin::Directory::Stylish using cpanm command or cpan command.

# cpanm
cpanm Mojolicious::Plugin::Directory::Stylish

# cpan
cpan Mojolicious::Plugin::Directory::Stylish

Serve List of Directories

Serve List of Directories.

#!/usr/bin/env perl

use Mojolicious::Lite;
plugin 'Directory::Stylish';
app->start('daemon');

You can serve the list of directories on your command line.

perl -Mojo -E 'a->plugin("Directory::Stylish")->start' daemon

Let's access the following URL.

http://YourHostName:3000

Outputs

You will see the following outputs.

I'm Yuki Kimoto, one of the Perl Messagers.
News
Perl Club delivers fresh, healthy, fair, practical, lively, peaceful Perl information.