![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
emscripten-library-decorator
Advanced tools
This package provides decorators for writing Emscripten libraries. Include them in a TypeScript source file by adding a reference path
in the beginning pointing to index.ts
like:
/// <reference path="node_modules/emscripten-library-decorator/index.ts" />
function _print(message: string) {
console.log(message);
}
@exportLibrary
class test {
@dep(_print)
static hello() {
_print('Hello, World!!');
}
static foobar = 42;
};
The class decorator @exportLibrary
exports the static members of the class as an Emscripten library. Place it with no arguments just before the class.
The property decorator @dep
is for listing dependencies. It ensures that when an exported function is used in the C or C++ code, other required functions are also included in the compiled Emscripten output after dead code elimination. Place it just before a function with any number of parameters listing the other required functions.
The dependencies should be global functions and their name should begin with an underscore. Otherwise Emscripten's name mangling will change their name in the output making any calls to them fail.
There is a longer article with more information.
Copyright (c) 2015 BusFaster Ltd
FAQs
Decorators for writing Emscripten libraries
The npm package emscripten-library-decorator receives a total of 0 weekly downloads. As such, emscripten-library-decorator popularity was classified as not popular.
We found that emscripten-library-decorator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.