Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Node.js Tcl bindings to execute Tcl commands using a native Tcl Interpreter.
Prerequisites : You will need to have tcl-dev
packages installed on
your system (e.g. sudo apt-get install tcl-dev
) for the Node.js native addon
to link to along with a c++11 compatible compiler (e.g. g++ v4.8
).
$ npm install --save tcl
You can execute any Tcl command supported by the Tcl shell (tchsh
) and you
can even load native Tcl modeles (load module.so
), source scripts
(source filename.tcl
) and source Tcl libraries (package require name
).
Note : Asynchronous commands (cmd
and eval
) are executed usng a
dedicated worker thread using a new Tcl Interpreter instance and comes with the
overhead of creating and destroying a Tcl Interpreter for each call. But these
executions are parallel and useful for batched tasks.
var tcl = require( 'tcl' );
// synchronous commands
console.log( tcl.version() );
console.log( tcl.cmdSync( 'info tclversion' ) );
console.log( tcl.evalSync( 'info tclversion' ) );
// asynchronous commands (parallelly executed in decated threads)
tcl.cmd( 'info tclversion', function ( err, result ) {
console.log( result.data() );
} );
tcl.eval( 'info commands', function ( err, result ) {
console.log( result.toArray() );
} );
// queued asynchronous commands (executed in a shared thread)
tcl.queue( 'set x 0' );
tcl.queue( 'incr $x', function ( err, result ) {
console.log( result );
} );
var Tcl = require( 'tcl' ).Tcl;
var tcl = new Tcl();
console.log( tcl.version() );
JSDoc generated API documentation can be found at http://nukedzn.github.io/node-tcl/docs/.
Contributions are welcome through GitHub pull requests (using fork & pull model).
FAQs
Node.js Tcl binding
The npm package tcl receives a total of 3 weekly downloads. As such, tcl popularity was classified as not popular.
We found that tcl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.