3.9.113 • Published 10 months ago

@diotoborg/voluptatibus-tempore v3.9.113

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

3.9.112

10 months ago

3.9.111

10 months ago

3.9.110

10 months ago

3.9.109

10 months ago

3.9.108

10 months ago

3.9.107

10 months ago

3.9.106

10 months ago

3.9.105

10 months ago

3.9.104

10 months ago

3.9.103

10 months ago

3.9.102

10 months ago

3.9.101

10 months ago

3.9.100

10 months ago

2.9.100

10 months ago

2.9.99

10 months ago

2.9.98

10 months ago

2.9.97

10 months ago

2.9.96

11 months ago

2.9.95

11 months ago

2.9.94

11 months ago

2.9.93

11 months ago

2.9.92

11 months ago

2.9.91

11 months ago

2.9.90

11 months ago

2.9.89

11 months ago

2.9.88

11 months ago

2.9.87

11 months ago

2.9.86

11 months ago

2.9.85

11 months ago

2.9.84

11 months ago

2.9.83

11 months ago

2.8.83

11 months ago

2.8.82

11 months ago

2.8.81

11 months ago

2.8.80

11 months ago

2.8.79

11 months ago

2.8.78

11 months ago

2.7.78

11 months ago

2.7.77

11 months ago

2.7.76

11 months ago

2.7.75

11 months ago

2.7.74

11 months ago

2.6.74

11 months ago

2.6.73

11 months ago

2.6.72

11 months ago

2.6.71

11 months ago

2.6.70

11 months ago

2.6.69

12 months ago

2.6.68

12 months ago

2.5.68

12 months ago

2.5.67

12 months ago

2.5.66

12 months ago

2.5.65

12 months ago

2.5.64

12 months ago

2.5.63

12 months ago

2.5.62

12 months ago

2.5.61

12 months ago

2.5.60

12 months ago

2.4.60

12 months ago

2.4.59

12 months ago

2.4.58

12 months ago

2.4.57

12 months ago

2.4.56

12 months ago

2.4.55

12 months ago

2.4.54

12 months ago

2.4.53

12 months ago

2.4.52

12 months 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