Skip to content

mohitk05/on-demand-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

on-demand-js

Execute JavaScript functions on the fly.

API

POST /create-function/:name

Create a new function.

POST /create-function/add
Body: {
    "function": "function({ a, b }) {return a + b}"
}

POST /execute/:name

Execute an existing function.

POST /execute/add
Body: {
    "context": {
        "a": 1,
        "b": 2
    }
}

Response: {
    "result": 3
}

About

Execute JavaScript functions on the fly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published