JavaScript-Any

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

      "develop" : {
         "recommends" : {
            "Dist::Inkt" : "0.001"
         }
      },
      "runtime" : {
         "requires" : {
            "Class::Tiny" : "0",
            "Exporter::Shiny" : "1.000000",
            "JSON::PP" : "0",
            "Ref::Util" : "0",
            "Role::Tiny" : "0",
            "namespace::autoclean" : "0",
            "perl" : "5.008003"
         }
      },
      "test" : {
         "requires" : {
            "Test::More" : "0.96"
         }
      }

META.yml  view on Meta::CPAN

  JavaScript::Any::Context::JE:
    file: lib/JavaScript/Any/Context/JE.pm
    version: '0.002'
  JavaScript::Any::Context::V8:
    file: lib/JavaScript/Any/Context/V8.pm
    version: '0.002'
requires:
  Class::Tiny: '0'
  Exporter::Shiny: '1.000000'
  JSON::PP: '0'
  Ref::Util: '0'
  Role::Tiny: '0'
  namespace::autoclean: '0'
  perl: '5.008003'
resources:
  Identifier: http://purl.org/NET/cpan-uri/dist/JavaScript-Any/project
  bugtracker: http://rt.cpan.org/Dist/Display.html?Queue=JavaScript-Any
  homepage: https://metacpan.org/release/JavaScript-Any
  license: http://dev.perl.org/licenses/
  repository: git://github.com/tobyink/p5-javascript-any.git
version: '0.002'

Makefile.PL  view on Meta::CPAN

  "prereqs"        => {
                        configure => { requires => { "ExtUtils::MakeMaker" => 6.17 } },
                        develop   => { recommends => { "Dist::Inkt" => 0.001 } },
                        runtime   => {
                                       requires => {
                                         "Class::Tiny"          => 0,
                                         "Exporter::Shiny"      => "1.000000",
                                         "JSON::PP"             => 0,
                                         "namespace::autoclean" => 0,
                                         "perl"                 => 5.008003,
                                         "Ref::Util"            => 0,
                                         "Role::Tiny"           => 0,
                                       },
                                     },
                        test      => { requires => { "Test::More" => 0.96 } },
                      },
  "provides"       => {
                        "JavaScript::Any"                   => { file => "lib/JavaScript/Any.pm", version => 0.002 },
                        "JavaScript::Any::Context"          => { file => "lib/JavaScript/Any/Context.pm", version => 0.002 },
                        "JavaScript::Any::Context::Duktape" => { file => "lib/JavaScript/Any/Context/Duktape.pm", version => 0.002 },
                        "JavaScript::Any::Context::JE"      => { file => "lib/JavaScript/Any/Context/JE.pm", version => 0.002 },

doap.ttl  view on Meta::CPAN

	dc:title             "the same terms as the perl 5 programming language system itself".

<http://purl.org/NET/cpan-uri/dist/JavaScript-Any/project>
	a                    doap:Project;
	dc:contributor       <http://purl.org/NET/cpan-uri/person/tobyink>;
	doap-deps:develop-recommendation [ doap-deps:on "Dist::Inkt 0.001"^^doap-deps:CpanId ];
	doap-deps:runtime-requirement [ doap-deps:on "perl 5.008003"^^doap-deps:CpanId ], [
		doap-deps:on "Exporter::Shiny 1.000000"^^doap-deps:CpanId;
	], [
		doap-deps:on "namespace::autoclean"^^doap-deps:CpanId;
	], [ doap-deps:on "Class::Tiny"^^doap-deps:CpanId ], [ doap-deps:on "Role::Tiny"^^doap-deps:CpanId ], [ doap-deps:on "Ref::Util"^^doap-deps:CpanId ], [ doap-deps:on "JSON::PP"^^doap-deps:CpanId ];
	doap-deps:test-requirement [ doap-deps:on "Test::More 0.96"^^doap-deps:CpanId ];
	doap:bug-database    <http://rt.cpan.org/Dist/Display.html?Queue=JavaScript-Any>;
	doap:created         "2017-07-19"^^xsd:date;
	doap:developer       <http://purl.org/NET/cpan-uri/person/tobyink>;
	doap:download-page   <https://metacpan.org/release/JavaScript-Any>;
	doap:homepage        <https://metacpan.org/release/JavaScript-Any>;
	doap:license         <http://dev.perl.org/licenses/>;
	doap:maintainer      <http://purl.org/NET/cpan-uri/person/tobyink>;
	doap:name            "JavaScript-Any";
	doap:programming-language "Perl";

lib/JavaScript/Any/Context.pm  view on Meta::CPAN


our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION   = '0.002';

use namespace::autoclean;
use Role::Tiny;

requires 'eval';
requires 'define';

use Ref::Util qw( is_plain_scalarref );

# convenience methods here

sub implementation {
	ref shift;
}

sub is_true {
	shift;
	my ($value) = @_;

lib/JavaScript/Any/Context/Duktape.pm  view on Meta::CPAN

package JavaScript::Any::Context::Duktape;

our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION   = '0.002';

use namespace::autoclean;
use Class::Tiny qw( _engine );
use Role::Tiny::With;
with qw( JavaScript::Any::Context );

use Ref::Util qw(
	is_plain_arrayref is_plain_hashref is_ref
	is_blessed_ref is_plain_coderef
);
use JavaScript::Duktape qw();

sub BUILD {
	my $self = shift;
	my ($args) = @_;

	$self->_engine("JavaScript::Duktape"->new(

lib/JavaScript/Any/Context/JE.pm  view on Meta::CPAN

package JavaScript::Any::Context::JE;

our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION   = '0.002';

use namespace::autoclean;
use Class::Tiny qw( _engine );
use Role::Tiny::With;
with qw( JavaScript::Any::Context );

use Ref::Util qw(
	is_plain_arrayref is_plain_hashref is_ref
	is_blessed_ref is_plain_coderef
);
use JE qw();

sub BUILD {
	my $self = shift;
	my ($args) = @_;

	$self->_engine("JE"->new(

lib/JavaScript/Any/Context/V8.pm  view on Meta::CPAN

package JavaScript::Any::Context::V8;

our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION   = '0.002';

use namespace::autoclean;
use Class::Tiny qw( _context );
use Role::Tiny::With;
with qw( JavaScript::Any::Context );

use Ref::Util qw(
	is_plain_arrayref is_plain_hashref is_ref
	is_blessed_ref is_plain_coderef
);
use JavaScript::V8 qw();

sub BUILD {
	my $self = shift;
	my ($args) = @_;

	$self->_context("JavaScript::V8::Context"->new(



( run in 0.278 second using v1.01-cache-2.11-cpan-4d50c553e7e )