Skip to content

Messageflow/messageflow

Repository files navigation

messageflow

Better greeting message


NPM

Build Status Version Downloads MIT License Dependency Status NSP Status

Code of Conduct

codebeat-badge codacy-badge inch-badge

Messageflow

Table of contents

Pre-requisites

Setup

Install

# Install via NPM
$ npm install --save messageflow

Usage

Node.js

const greeting = require('messageflow');

Native ES modules or TypeScript

import greeting from 'messageflow';

API Reference

greeting(name)

  • name <string> Name of the person to greet at.
  • returns: <Promise<string>> Promise which resolves with a greeting message.

greetingSync(name)

This methods works the same as greeting(name) except that this is the synchronous version.

License

MIT License © Rong Sen Ng