Skip to content

(v2.02 and above) Javet engine

NGUYEN DUY QUOC KHANH edited this page Jan 12, 2024 · 1 revision

With Javet, you can write nodejs code in extension.

  • Import node_modules:

image

  • Write nodejs code:
const {
  createHash,
} = require('node:crypto');

function md5(content) {  
  return createHash('md5').update(content).digest('hex')
}

jslogger.logs.push(md5("1111"));
  • Run with Javet

image

  • Result:

image

Clone this wiki locally