The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

JavaScript::Duktape::XS - Perl XS binding for the Duktape Javascript embeddable engine

VERSION

Version 0.000032

SYNOPSIS

    my $duk = JavaScript::Duktape::XS->new();
    $duk->set('global_name', [1, 2, 3]);
    $duk->set('my.object.slot', { foo => [ 4, 5 ] });
    $duk->set('function_name', sub { my @args = @_; return \@args; });
    my $aref = $duk->get('global_name');
    my $returned = $duk->eval('function_name(my.object.slot)');

DESCRIPTION

This module provides an XS wrapper to call Duktape from Perl.

METHODS/ATTRIBUTES

new

set

get

eval

SEE ALSO

https://metacpan.org/pod/JavaScript::Duktape

LICENSE

Copyright (C) Gonzalo Diethelm.

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license.

AUTHOR

  • Gonzalo Diethelm gonzus AT cpan DOT org

THANKS