((o) Duktape Wiki
Welcome to the official Duktape Wiki!
Documentation
- http://duktape.org/guide.html - older: 1.5 1.4 1.3 1.2 1.1 1.0
- http://duktape.org/api.html - older: 1.5 1.4 1.3 1.2 1.1 1.0
Getting started
How-To
- How to handle fatal errors
- How to work with value stack types
- How to make function calls
- How to use virtual properties
- How to use finalization
- How to work with buffers (Duktape 1.x, Duktape 2.x)
- How to work with lightfuncs
- How to use modules
- How to use coroutines
- How to use logging
- How to persist object references in native code
- How to write a native constructor function
- How to iterate over an array
- How to augment error objects
- How to decode Duktape bytecode
- How to work with non-BMP characters
- How to get a reference to the global object
- How to run on bare metal platforms
- How to enable debug prints
- How to configure your editor for Duktape
Frequently asked questions
- Development setup for developing Duktape
- Troubleshooting basics
- Internal and external prototype
- API C types
- Post-ES5 features
Config and feature options
- Configuring Duktape for build
- Config options (DUK_USE_xxx) used in duk_config.h
- Feature options (DUK_OPT_XXX) used as compiler command line options (up to Duktape 1.3), see https://github.com/svaarala/duktape/tree/master/config/feature-options
Portability and compatibility
- Portability notes for various compilers and target, compilation and troubleshooting tips
- platforms
- architectures
- compilers
- standard libraries: musl, uclibc
- Compatibility with TypeScript
Performance
- http://duktape.org/benchmarks.html
- How to optimize performance
- Duktape 1.3.0 performance measurement
- Duktape 1.4.0 performance measurement
- Duktape 1.5.0 performance measurement
- Duktape 2.0.0 performance measurement
- Duktape 2.1.0 performance measurement
- Duktape 2.2.0 performance measurement
- Duktape 2.3.0 performance measurement
- Duktape 2.4.0 performance measurement
- Duktape 2.5.0 performance measurement
Low memory optimization
- Low memory environments: low-memory.rst
- Low memory config option suggestions: low-memory.yaml
- Hybrid pool allocator example: alloc-hybrid