prague
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

Prague

A library for using function programming concepts to more concisely and expressively code in apps like games and chatbots. I thought of it as I walked around the city of Prague on a sunny Spring day. This is not an official Microsoft project.

Major features of Prague:

  • strongly-typed when using TypeScript (but you don't have to use TypeScript)
  • flexibly asynchronous - mix functions that return Promises with functions that don't
  • utilizes and promotes functional programming (you do actually have to use functional programming, but you don't have to know anything about it to get started)

Building Prague

  • clone this repo
  • npm install
  • npm run build (or npm run watch to build on file changes)

To add to your app

  • npm install prague

Tutorial

The Prague tutorial starts here.

Samples

There is a simple chatbot sample here.

After building Prague, run it by node lib/samples/runSimpleBot.js, then try saying:

My name is {your name here}
Je m'appelle {your name here}
Gone fishing
Howdy y'all, I'm { your name here}
Back to work
Howdy y'all, I'm { your name here}
Goodbye

Readme

Keywords

none

Package Sidebar

Install

npm i prague

Weekly Downloads

94

Version

1.3.1

License

MIT

Unpacked Size

118 kB

Total Files

36

Last publish

Collaborators

  • billba