Nutritious Pomegranate Muffins
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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 });

Keywords

none

Install

npm i rung-sdk

DownloadsWeekly Downloads

9

Version

1.0.7

License

MIT

Last publish

Collaborators

  • avatar