• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..01-Sep-2021-

config/H03-May-2022-8,4107,429

debugger/H03-May-2022-3,3153,146

examples/H01-Sep-2021-8,4906,265

extras/H01-Sep-2021-1411

licenses/H03-May-2022-

polyfills/H03-May-2022-

src/H01-Sep-2021-92,99961,601

src-noline/H01-Sep-2021-92,87461,476

src-separate/H03-May-2022-92,28560,969

AUTHORS.rstH A D01-Sep-20212.3 KiB7362

Makefile.cmdlineH A D01-Sep-20211 KiB3513

Makefile.codepageH A D01-Sep-2021154 54

Makefile.coffeeH A D01-Sep-2021130 54

Makefile.dukdebugH A D01-Sep-20211,021 2717

Makefile.evalH A D01-Sep-2021149 83

Makefile.eventloopH A D01-Sep-2021651 2316

Makefile.helloH A D01-Sep-20211.2 KiB369

Makefile.jxprettyH A D01-Sep-2021168 94

Makefile.sandboxH A D01-Sep-2021161 83

Makefile.sharedlibraryH A D01-Sep-20213.1 KiB7226

README.rstH A D01-Sep-20213.7 KiB11177

duk_build_meta.jsonH A D01-Sep-202133.9 KiB1,3491,349

license.spdxH A D01-Sep-2021262.6 KiB3,9343,933

README.rst

1=======
2Duktape
3=======
4
5Duktape is a small and portable Ecmascript E5/E5.1 implementation.  It is
6intended to be easily embeddable into C programs, with a C API similar in
7spirit to Lua's.
8
9Duktape supports the full E5/E5.1 feature set including errors, Unicode
10strings, and regular expressions, a subset of E6 features (e.g. Proxy
11objects), Khronos/ES6 ArrayBuffer/TypedView, and Node.js Buffer bindings.
12
13Duktape also provides a number of custom features such as error tracebacks,
14additional data types for better C integration, combined reference counting
15and mark-and sweep garbage collector, object finalizers, co-operative
16threads a.k.a. coroutines, tail calls, built-in logging and module frameworks,
17a built-in debugger protocol, function bytecode dump/load, and so on.
18
19You can browse Duktape programmer's API and other documentation at:
20
21* http://duktape.org/
22
23In particular, you should read the getting started section:
24
25* http://duktape.org/guide.html#gettingstarted
26
27More examples and how-to articles are in the Duktape Wiki:
28
29* http://wiki.duktape.org/
30
31Building and integrating Duktape into your project is very straightforward:
32
33* http://duktape.org/guide.html#compiling
34
35See Makefile.hello for a concrete example::
36
37  $ cd <dist_root>
38  $ make -f Makefile.hello
39  [...]
40  $ ./hello
41  Hello world!
42  2+3=5
43
44To build an example command line tool, use the following::
45
46  $ cd <dist_root>
47  $ make -f Makefile.cmdline
48  [...]
49
50  $ ./duk
51  ((o) Duktape
52  duk> print('Hello world!');
53  Hello world!
54  = undefined
55
56  $ ./duk mandel.js
57  [...]
58
59This distributable contains:
60
61* ``src/``: main Duktape library in a "single source file" format (duktape.c,
62  duktape.h, and duk_config.h).
63
64* ``src-noline/``: contains a variant of ``src/duktape.c`` with no ``#line``
65  directives which is preferable for some users.  See discussion in
66  https://github.com/svaarala/duktape/pull/363.
67
68* ``src-separate/``: main Duktape library in multiple files format.
69
70* ``config/``: genconfig utility for creating duk_config.h configuration
71  files, see: http://wiki.duktape.org/Configuring.html.
72
73* ``examples/``: further examples for using Duktape.  Although Duktape
74  itself is widely portable, some of the examples are Linux only.
75  For instance the ``eventloop`` example illustrates how ``setTimeout()``
76  and other standard timer functions could be implemented on Unix/Linux.
77
78* ``extras/``: utilities and modules which don't comfortably fit into the
79  main Duktape library because of footprint or portability concerns.
80  Extras are maintained and bug fixed code, but don't have the same version
81  guarantees as the main Duktape library.
82
83* ``polyfills/``: a few replacement suggestions for non-standard Javascript
84  functions provided by other implementations.
85
86* ``debugger/``: a debugger with a web UI, see ``debugger/README.rst`` and
87  https://github.com/svaarala/duktape/blob/master/doc/debugger.rst for
88  details on Duktape debugger support.  Also contains a JSON debug proxy
89  (one written in Node.js and another in DukLuv) to make talking to the
90  debug target easier.
91
92* ``licenses/``: licensing information.
93
94You can find release notes at:
95
96* https://github.com/svaarala/duktape/blob/master/RELEASES.rst
97
98This distributable contains Duktape version 1.8.0, created from git
99commit 0a70d7e4c5227c84e3fed5209828973117d02849 (v1.8.0).
100
101Duktape is copyrighted by its authors (see ``AUTHORS.rst``) and licensed
102under the MIT license (see ``LICENSE.txt``).  String hashing algorithms are
103based on the algorithm from Lua (MIT license), djb2 hash, and Murmurhash2
104(MIT license).  Duktape module loader is based on the CommonJS module
105loading specification (without sharing any code), CommonJS is under the
106MIT license.
107
108Have fun!
109
110Sami Vaarala (sami.vaarala@iki.fi)
111