@leisurelink/svcutils

0.2.3 • Public • Published

svcutils

Service utilities for restify based APIs.

Use

If you're reading this then you are authorized to use the service utils.

In your package.json file, reference this repository:

{
  "name": "ur-pkg",
  "private": true,
  "dependencies": {
    "svcutils": "git+ssh://git@github.com:VacationRoost/svcutils.git#0.1.0",
    ...
  },
  ...
}

Methods

  • fixDate - transforms date strings and moment instances into javascript Date objects.
  • formatValidationError - helper function that formats a JSON schema validation error into a human readable message. Assumes the validation errors were produced by the jayschema package.
  • exposeRoutes - utility function that registers API routes on a restify server object from the routes described in a route descriptor object.

Readme

Keywords

none

Package Sidebar

Install

npm i @leisurelink/svcutils

Weekly Downloads

2

Version

0.2.3

License

none

Last publish

Collaborators

  • uniqname
  • blake1321
  • jouellette
  • lhirschi
  • flitbit
  • jtowner
  • twindagger
  • leisurelink-robot