microsoft / ClearScript

A library for adding scripting to .NET applications. Supports V8 (Windows, Linux, macOS) and JScript/VBScript (Windows).
https://microsoft.github.io/ClearScript/
MIT License
1.74k stars 148 forks source link

How to replace INodeServices #481

Closed gogo1008 closed 1 year ago

gogo1008 commented 1 year ago

//var crypto = require('crypto'); module.exports = { fn: function (callback, argJson, args) { let argParams= JSON.parse(argJson); callback(null / error /, argParams); } };

module.exports = function (callback, argJson, args) { let argParams = JSON.parse(argJson); callback(null, { "name": "demo", args: args}); };

ClearScriptLib commented 1 year ago

Hello @gogo1008,

Please clarify your question. What are you trying to do? What isn't working?

Thank you!

ClearScriptLib commented 1 year ago

Please reopen this issue if you can provide more information. Thank you!