rung-sdk

1.0.7 • Public • Published

Rung SDK

This is the software development kit for writing Rung applications.

Hello World!

const { create } = require('rung-sdk');
const { String: Text } = require('rung-sdk/dist/types');
 
function main(context) {
    const { name } = context.params;
    return `Hello, ${name}!`;
}
 
const params = {
    name: {
        default: 'visitor',
        description: 'Name of the user to greet',
        type: Text
    }
};
 
module.exports = create(main, { params });

Readme

Keywords

none

Package Sidebar

Install

npm i rung-sdk

Weekly Downloads

0

Version

1.0.7

License

MIT

Last publish

Collaborators

  • haskellcamargo