{"id":13438761,"url":"https://github.com/svaarala/duktape","last_synced_at":"2025-05-14T06:12:01.923Z","repository":{"id":13169066,"uuid":"15852088","full_name":"svaarala/duktape","owner":"svaarala","description":"Duktape - embeddable Javascript engine with a focus on portability and compact footprint","archived":false,"fork":false,"pushed_at":"2024-03-22T16:08:38.000Z","size":76239,"stargazers_count":6029,"open_issues_count":466,"forks_count":521,"subscribers_count":160,"default_branch":"master","last_synced_at":"2025-04-11T00:48:01.527Z","etag":null,"topics":["duktape","javascript","javascript-engine"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svaarala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-01-12T22:16:14.000Z","updated_at":"2025-03-31T15:28:30.000Z","dependencies_parsed_at":"2023-10-13T10:13:10.999Z","dependency_job_id":"a8dc09fa-886d-4867-91b9-636149738018","html_url":"https://github.com/svaarala/duktape","commit_stats":{"total_commits":8190,"total_committers":73,"mean_commits":112.1917808219178,"dds":"0.026617826617826634","last_synced_commit":"37b642d3596fcf122fa502320f7a037a3d3494bd"},"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svaarala%2Fduktape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svaarala%2Fduktape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svaarala%2Fduktape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svaarala%2Fduktape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svaarala","download_url":"https://codeload.github.com/svaarala/duktape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254080122,"owners_count":22011325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["duktape","javascript","javascript-engine"],"created_at":"2024-07-31T03:01:08.208Z","updated_at":"2025-05-14T06:12:01.836Z","avatar_url":"https://github.com/svaarala.png","language":"JavaScript","funding_links":[],"categories":["Scripting","JavaScript","JavaScript框架","正则表达式","Libraries"],"sub_categories":["其他_文本生成、文本对话","脚本","C"],"readme":"Duktape\n=======\n\n[![Build status](https://github.com/svaarala/duktape/workflows/Build/badge.svg?branch=master)](https://github.com/svaarala/duktape/actions)\n[![Test status](https://github.com/svaarala/duktape/workflows/Test/badge.svg?branch=master)](https://github.com/svaarala/duktape/actions)\n\n:warning: **Master branch is undergoing incompatible changes for Duktape 3.x**.\nTo track Duktape 2.x, follow the `v2-maintenance` branch.\n\nIntroduction\n------------\n\n[Duktape](http://duktape.org/) is an **embeddable Javascript** engine,\nwith a focus on **portability** and **compact** footprint.\n\nDuktape is easy to integrate into a C/C++ project: add `duktape.c`,\n`duktape.h`, and `duk_config.h` to your build, and use the Duktape API\nto call ECMAScript functions from C code and vice versa.\n\nMain features:\n\n* Embeddable, portable, compact\n* ECMAScript E5/E5.1 compliant, with some semantics updated from ES2015+\n* Partial support for ECMAScript 2015 (E6) and ECMAScript 2016 (E7),\n  [Post-ES5 feature status](http://wiki.duktape.org/PostEs5Features.html),\n  [kangax/compat-table](https://kangax.github.io/compat-table)\n* ES2015 TypedArray and Node.js Buffer bindings\n* WHATWG Encoding API living standard\n* Built-in debugger\n* Built-in regular expression engine\n* Built-in Unicode support\n* Minimal platform dependencies\n* Combined reference counting and mark-and-sweep garbage collection with finalization\n* Custom features like coroutines\n* Property virtualization using a subset of ECMAScript ES2015 Proxy object\n* Bytecode dump/load for caching compiled functions\n* Distributable includes an optional logging framework, CommonJS-based module\n  loading implementations, CBOR bindings, etc\n* Liberal MIT license (see LICENSE.txt)\n\nSee [duktape.org](http://duktape.org/) for packaged end-user downloads\nand documentation.  The end user downloads are also available from the\n[duktape-releases](https://github.com/svaarala/duktape-releases) repo\nas both binaries and in unpacked form as git tags.\n\nHave fun!\n\nSupport\n-------\n\n* Duktape Wiki: [wiki.duktape.org](http://wiki.duktape.org)\n* User community Q\u0026A: Stack Overflow [duktape](http://stackoverflow.com/questions/tagged/duktape) tag\n* Bugs and feature requests: [GitHub issues](https://github.com/svaarala/duktape/issues)\n* General discussion: IRC `#duktape` on `chat.freenode.net` ([webchat](https://webchat.freenode.net))\n\nAbout this repository\n---------------------\n\nThis repository is **intended for Duktape developers only**, and contains\nDuktape internals: test cases, internal documentation, sources for the\nduktape.org web site, etc.\n\nGetting started: end user\n-------------------------\n\nWhen embedding Duktape in your application you should use the packaged source\ndistributables available from [duktape.org/download.html](http://duktape.org/download.html).\nSee [duktape.org/guide.html#gettingstarted](http://duktape.org/guide.html#gettingstarted)\nfor the basics.\n\nThe distributable `src/` directory contains a `duk_config.h` configuration\nheader and amalgamated sources for Duktape default configuration.  If\nnecessary, use `python tools/configure.py` to create header and sources for\ncustomized configuration options, see http://wiki.duktape.org/Configuring.html.\nFor example, to enable fastint support (example for Linux):\n\n    $ tar xvfJ duktape-2.0.0.tar.xz\n    $ cd duktape-2.0.0\n    $ rm -rf src-custom\n    $ python tools/configure.py \\\n          --source-directory src-input \\\n          --output-directory src-custom \\\n          --config-metadata config \\\n          -DDUK_USE_FASTINT\n\n    # src-custom/ will now contain: duktape.c, duktape.h, duk_config.h.\n\nYou can download and install Duktape using the\n[vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:\n   \n    $ git clone https://github.com/Microsoft/vcpkg.git\n    $ cd vcpkg\n    $ ./bootstrap-vcpkg.sh\n    $ ./vcpkg integrate install\n    $ vcpkg install duktape\n    \nThe Duktape port in vcpkg is kept up to date by Microsoft team members\nand community contributors.  If the version is out of date, please\n[create an issue or pull request](https://github.com/Microsoft/vcpkg) on\nthe vcpkg repository.\n\nYou can also clone this repository, make modifications, and build a source\ndistributable on Linux, macOS, and Windows using `python util/dist.py`.\nYou'll need Python 2 and Python YAML binding.\n\nGetting started: modifying and rebuilding the distributable\n-----------------------------------------------------------\n\nIf you intend to change Duktape internals and want to rebuild the source\ndistributable in Linux, macOS, or Windows:\n\n    # Linux; can often install from packages or using 'pip'\n    # Install Node.js \u003e= 16.x\n    $ sudo apt-get install python python-yaml\n    $ python util/dist.py\n\n    # macOS\n    # Install Python 2.7.x\n    # Install Node.js \u003e= 16.x\n    $ pip install PyYAML\n    $ python util/dist.py\n\n    # Windows\n    ; Install Python 2.7.x from python.org, and add it to PATH\n    ; Install Node.js \u003e= 16.x\n    \u003e pip install PyYAML\n    \u003e python util\\dist.py\n\nThe source distributable directory will be in `dist/`.\n\nFor platform specific notes see http://wiki.duktape.org/DevelopmentSetup.html.\n\nGetting started: other development (Linux only)\n-----------------------------------------------\n\nOther development stuff, such as building the website and running test cases,\nis based on a `Makefile` **supported for Linux x86-64 only**.\n\nThere are some Docker images which can simplify the development setup and also\ndocument the needed packages.  These are also **supported for Linux x86-64 only**.\nFor example:\n\n    # Build Docker images.  This takes a long time.\n    $ make docker-images\n\n    # Equivalent of 'make dist-source', but runs inside a container.\n    $ make docker-dist-source-wd\n\n    # Run a shell with /work/duktape containing a disposable master snapshot.\n    $ make docker-shell-master\n\n    # Run a shell with /work/duktape mounted from current directory.\n    # This allows editing, building, testing, etc with an interactive\n    # shell running in the container.\n    $ make docker-shell-wdmount\n\n    # For non-native images you may need:\n    # https://github.com/multiarch/qemu-user-static\n\nThere is limited support for developing on macOS via Docker.  On Apple M1:\n\n    $ make docker-images-arm64\n    $ DOCKER_ARCH=arm64 make docker-shell-wdmount\n\nBranch policy\n-------------\n\n* The `master` branch is used for active development.  Even though pull requests\n  are tested before merging, master may still be broken from time to time.  When\n  development on a new major release starts, master will also get API\n  incompatible changes without warning.  For these reasons **you should\n  generally not depend on the master branch** for building your project; use\n  a release tag (e.g. `v2.4.0`) or a release maintenance branch\n  (e.g. `v2.4-maintenance` or `v2-maintenance`) instead.\n\n* Pull requests and their related branches are frequently rebased so you\n  should not fork off them.  Pull requests may be open for a while for\n  testing and discussion.\n\n* Release tags like `v1.4.1` are used for releases and match the released\n  distributables.  These are stable once the release is complete.\n\n* Maintenance branches are used for backporting fixes and features for\n  maintenance releases.  Documentation changes go to master for maintenance\n  releases too.  For example, `v1.5-maintenance` was created for the 1.5.0\n  release and is used for 1.5.x maintenance releases.\n\n* A maintenance branch is also created for a major release when master moves\n  on to active development of the next major release.  For example,\n  `v1-maintenance` was created when 1.5.0 was released (last planned 1.x\n  release) and development of 2.0.0 (with API incompatible changes) started\n  on master.  The 1.6.0 and 1.7.0 releases were made from `v1-maintenance`\n  for example.\n\nVersioning\n----------\n\nDuktape uses [Semantic Versioning](http://semver.org/) for official\nreleases.  Builds from Duktape repo are not official releases and don't\nfollow strict semver, mainly because `DUK_VERSION` needs to have some\ncompromise value that won't be strictly semver conforming.\nBecause Duktape tracks the latest ECMAScript specification versions,\ncompliance fixes are made in minor versions even when they are technically\nnot backwards compatible.  See\n[Versioning](http://duktape.org/guide.html#versioning) for details.\n\nReporting bugs\n--------------\n\nSee [CONTRIBUTING.md](https://github.com/svaarala/duktape/blob/master/CONTRIBUTING.md) and [SECURITY.md](https://github.com/svaarala/duktape/blob/master/SECURITY.md).\n\nContributing\n------------\n\nSee [CONTRIBUTING.md](https://github.com/svaarala/duktape/blob/master/CONTRIBUTING.md).\n\nCopyright and license\n---------------------\n\nSee [AUTHORS.rst](https://github.com/svaarala/duktape/blob/master/AUTHORS.rst)\nand [LICENSE.txt](https://github.com/svaarala/duktape/blob/master/LICENSE.txt).\n\n[Duktape Wiki](https://github.com/svaarala/duktape-wiki/) is part of Duktape\ndocumentation and under the same copyright and license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvaarala%2Fduktape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvaarala%2Fduktape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvaarala%2Fduktape/lists"}