3.9.113 • Published 11 months ago

@diotoborg/voluptatibus-tempore v3.9.113

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@diotoborg/voluptatibus-tempore

Helper functions for API handling on NodeJS. The functions are pure and curried with Ramda.

Build Status Coverage Status npm version Dependency Status

Install

$ npm install @diotoborg/voluptatibus-tempore --save

Run the specs

$ npm test

Usage

// Example API route such as '/users' which could reasonably leverage a 
// 'user' model which would return a promise or catch with an error object.

// The error object passed in the catch should include a 'statusCode' property
// that is specific to the respective error. If it does not, the api utils 
// will default to 500.

// Note: Because the util functions are curried, we can keep them pure and by 
// invoking with req and res, as shown below.

var apiUtils  = require('@diotoborg/voluptatibus-tempore'),
    userModel = require('./models/user');

function getUsers(req, res, next) {
  userModel.getUsers().
    then(apiUtils.jsonResponseSuccess(req, res)).
    catch(apiUtils.jsonResponseError(req, res, next));
};

module.exports = getUsers;
intrinsiccomputed-typeses2017accessorfastifydebugapollosyntaxerrorindicatorwgetmkdirpparsespinnerobjArray.prototype.containsregexpArray.prototype.findLastIndexelectronletextendnegativeloggerflagsetImmediatesliceArray.prototype.filterbyteOffsetfind-upshimtelephonereadablestreamdefinePropertyUint8ClampedArrayES2017upbabel-coreECMAScript 2017ieastbuffersutilsjsxroute53threetapeUint16Array256npmbindemithigher-orderloadingchromeprototypereadparserelbeslint-pluginparentsglobal this valuecoercibletraverseECMAScript 7eslintconfigArray.prototype.findLastECMAScript 2021createpathrm -rfconcatES8importwritableWebSocketsworkflow0Array.prototype.includesclassnamesArrayBuffer.prototype.slicetacitjsdominspectlibphonenumberdragmonoreporegular expressionhashdeletejavascriptmkdirsreverseinvariantfast-deep-copyargumentprotocol-buffersvestjson-schemasetPrototypeOfStreamscloudwatchoptionvalueflatrfc4122awsformsbundlingreducereact-hook-formstreamswhatwggetintrinsic-0functionsCSSStyleDeclarationdataES2021curles2016robustcloudtrailSetsyntaxcss-in-jscoveragedescriptorsubprocesseverywindowes2018columnsclicjkreact-hooksglobalsequalESnextgraphqlreduxrapidString.prototype.trimproxyzeroworkspace:*outputweaksetES2016isConcatSpreadableextracall-bindemojiES2015selffnmatchautoprefixercolorsgetoptgroupsearchbinarytyped arrayoncelockfilevalidspinnersgetPrototypeOfassertioncloudfrontresolveprefixminimaljesttoolkitfilter6to5pureRegExp#flagsInt8ArraylasthasOwnPropertytextchairuntimecompilertoobjectES2022widthIteratorprotoawesomesauceObject.islook-upsesdeepcloneexecfilergbflatMaputilitywritetypedeepcopymergecall-boundspawnidlebeanstalkUnderscore$.extendPromiselanguageformArrayvalidatoracornmapreducesymbolsweakmapJSONexecReactiveXstringsharedwebreal-timeurlObject.definePropertycloneinAsyncIteratortoReversedArray.prototype.flatMapramdaglobal objectswfvalidationprivateuninstallfunctionECMAScript 2018testingfeedreactistanbulvisualqueuefixed-widthsimpledbinstallerenderstylingsameValueZeroMicrosoftformatec2pushserializeSymbolpipenodeconsume
3.9.113

11 months ago

3.9.112

11 months ago

3.9.111

12 months ago

3.9.110

12 months ago

3.9.109

12 months ago

3.9.108

12 months ago

3.9.107

12 months ago

3.9.106

12 months ago

3.9.105

12 months ago

3.9.104

12 months ago

3.9.103

12 months ago

3.9.102

12 months ago

3.9.101

12 months ago

3.9.100

12 months ago

2.9.100

12 months ago

2.9.99

12 months ago

2.9.98

12 months ago

2.9.97

12 months ago

2.9.96

12 months ago

2.9.95

12 months ago

2.9.94

12 months ago

2.9.93

12 months ago

2.9.92

1 year ago

2.9.91

1 year ago

2.9.90

1 year ago

2.9.89

1 year ago

2.9.88

1 year ago

2.9.87

1 year ago

2.9.86

1 year ago

2.9.85

1 year ago

2.9.84

1 year ago

2.9.83

1 year ago

2.8.83

1 year ago

2.8.82

1 year ago

2.8.81

1 year ago

2.8.80

1 year ago

2.8.79

1 year ago

2.8.78

1 year ago

2.7.78

1 year ago

2.7.77

1 year ago

2.7.76

1 year ago

2.7.75

1 year ago

2.7.74

1 year ago

2.6.74

1 year ago

2.6.73

1 year ago

2.6.72

1 year ago

2.6.71

1 year ago

2.6.70

1 year ago

2.6.69

1 year ago

2.6.68

1 year ago

2.5.68

1 year ago

2.5.67

1 year ago

2.5.66

1 year ago

2.5.65

1 year ago

2.5.64

1 year ago

2.5.63

1 year ago

2.5.62

1 year ago

2.5.61

1 year ago

2.5.60

1 year ago

2.4.60

1 year ago

2.4.59

1 year ago

2.4.58

1 year ago

2.4.57

1 year ago

2.4.56

1 year ago

2.4.55

1 year ago

2.4.54

1 year ago

2.4.53

1 year ago

2.4.52

1 year ago

2.4.51

1 year ago

2.4.50

1 year ago

2.4.49

1 year ago

2.4.48

1 year ago

2.4.47

1 year ago

2.4.46

1 year ago

2.3.46

1 year ago

2.3.45

1 year ago

2.3.44

1 year ago

2.3.43

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.3.40

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.2.37

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago