Adding NodeJS version 12 env (#1683)
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const momentpackage = require("moment");
|
||||
|
||||
module.exports = async function (context) {
|
||||
return {
|
||||
status: 200,
|
||||
body: "Hello " + momentpackage().format(),
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "fission-nodejs-runtime",
|
||||
"engines": {
|
||||
"node": ">=7.6.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"moment": "*"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user