@runspace/runtime

RunSpace Daemon

Usage no npm install needed!

<script type="module">
  import runspaceRuntime from 'https://cdn.skypack.dev/@runspace/runtime';
</script>

README

@runspace/runtime

Runspace Runtime - allows you to create node administration javascript functions written in nodejs.

Runspace\lang

Example

module.exports = (context, callback) => {
  console.info("Hello, World!"
  callback("Hello, World!"
};

will return:

{
  "log": "Hello, World!",
  "data": "Hello, World!"
}

Features

Available Node Modules:

  • node-fetch
  • os
  • fs
  • path
  • child_process

Language possibilities

All Node.js >=10 features.

Console

You can log something using these functions:

console.debug(...someting);
console.log(...someting);
console.info(...someting);
console.warn(...someting);
console.error(...someting);
console.dir(...someting);
console.trace(...someting);

Usage

See examples in ./examples