JSPM

n-rules

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q31101F
  • License MIT

Business Process Management For Node

Package Exports

  • n-rules

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (n-rules) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node-Rules

Beginnings of a rule engine for NodeJS

- Your rules should be a first class citizen of your API
- This is being built with some ideas taken from GraphQL

Examples

import nRules from 'n-rules';

const types = `
  @Secure(LoggedIn)
  userTask checkItOut(create: Chicken) {

  }

  serverTask updateSomeStuff: Banana {

  }
`;

const resolvers = {
  checkItOut: () => "winning"
}

/*
  Just declare your task and resolvers.
  userTasks will be turned into RESTful endpoints
*/
nRules(types, resolvers);