7.9.152 • Published 9 months ago

@firanorg/id-et-quaerat v7.9.152

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

@firanorg/id-et-quaerat.js for Node.js

Subscribe Downloads Status Dependencies status

Powerful @firanorg/id-et-quaerat for Node.js that just works so you can focus on your awesome project:

// Include it and extract some methods for convenience
const @firanorg/id-et-quaerat = require('@firanorg/id-et-quaerat');
const { get, post } = @firanorg/id-et-quaerat.router;

// Launch @firanorg/id-et-quaerat with options and a couple of routes
@firanorg/id-et-quaerat({ port: 8080 }, [
  get('/', ctx => 'Hello world'),
  post('/', ctx => {
    console.log(ctx.data);
    return 'ok';
  })
]);

Getting started

There's a whole tutorial on getting started for beginners but the quick version is to first install @firanorg/id-et-quaerat as a dependency:

npm install @firanorg/id-et-quaerat

Server requires Node.js 7.6.0 or newer. Node.js 8.x.y LTS is recommended.

Then you can create a file called index.js with this code:

// Include the @firanorg/id-et-quaerat in your file
const @firanorg/id-et-quaerat = require('@firanorg/id-et-quaerat');
const { get, post } = @firanorg/id-et-quaerat.router;

// Handle requests to the url "/" ( http://localhost:3000/ )
@firanorg/id-et-quaerat([
  get('/', ctx => 'Hello world!')
]);

Execute this in the terminal to get the @firanorg/id-et-quaerat started:

node .

And finally, open your browser on localhost:3000 and you should see 'Hello world!' on your browser.

Documentation

The library is documented here:

Full Documentation

Subscribe here to receive tutorials when released. Tutorials are good for learning while the documentation is good for reference/quick use once you know the basics.

You can also download the repository and try the examples by browsing to them and node . inside each of them in /examples.

Use cases

The package @firanorg/id-et-quaerat is great for many situations. Let's see some of them:

Small to medium projects

Everything works out of the box, you get great support for most features and you can easily tap into Express' middleware ecosystem. What's not to love?

Some of the included features: body and file parsers, cookies, sessions, websockets, Redis, gzip, favicon, csrf, SSL, etc. They just work so you will save a headache or two and can focus on your actual project. Get a simple form going:

const @firanorg/id-et-quaerat = require('@firanorg/id-et-quaerat');
const { get, post } = @firanorg/id-et-quaerat.router;
const { render, redirect } = @firanorg/id-et-quaerat.reply;

@firanorg/id-et-quaerat(
  get('/', () => render('index.pug')),
  post('/', ctx => {
    console.log(ctx.data);
    return redirect('/');
  })
);

API design

From the flexibility and expressivity of the bundle, designing APIs is a breeze:

// books/router.js
const { get, post, put, del } = require('@firanorg/id-et-quaerat/router');
const ctrl = require('./controller');

module.exports = [
  get('/book', ctrl.list),
  get('/book/:id', ctrl.item),
  post('/book', ctrl.create),
  put('/book/:id', ctrl.update),
  del('/book/:id', ctrl.delete)
];

Real time

Websockets were never this easy to use! With socket.io on the front-end, you can simply do this in the back-end to handle those events:

// chat/router.js
const { socket } = require('@firanorg/id-et-quaerat/router');
const ctrl = require('./controller');

module.exports = [
  socket('connect', ctrl.join),
  socket('message', ctrl.message),
  socket('disconnect', ctrl.leave)
];

Author & support

This package was created by Francisco Presencia but hopefully developed and maintained by many others. See the the list of contributors here.

You can also sponsor the project, get your logo in here and some other perks with tons of ♥

wafReactiveXequalityjapanesecloudtrailsignalsRFC-6455fixed-widthwritableavapackage.jsonformsregexpmulti-packageesES6tapES2021collectiontimeopenelmbindruntimeurllimitES2015fseventscompile lessObjectworkertypesUnderscorekeyawaitmomentcommanderbluebirdwhichless mixinssesassertcall-bindes2018pathspecerror-handlingauthstdlibECMAScript 2020callrestFloat32ArrayTypeScriptcompilerperformancemoduletslibextendlivemkdirsshamwatchingArray.prototype.includesESnextpersistentWebSocketforEachtypeerrorobjbrowserlistlintidfast-copyECMAScript 2022datevalidationelasticacheshimpipeconsumeassertscompareassertionuninstalllruapp-0astreduxnodejsUint8ClampedArrayvaluesassignviewRxJSispluginio-tsstyleguideURLpushsuperagentrouteES2023css lesspromiselesscssfile systemautoscalingmake dircolumnString.prototype.trimansiObject.istoArrayArrayBuffer#sliceargparsenumberlanguageenvloggerStyleSheetObject.fromEntrieskeysgetPrototypeOfarrayssetImmediatereusegetOwnPropertyDescriptorkinesises2017form-validationnested cssES8ES3processvariablesserializersigtermECMAScript 2019spinnerdeepparsecolorsdependency managerreact-hookspatchdirectoryMicrosoftdropformsettingsworkflowa11yxtermclassesweakmapargumentintrinsicelectronjsdiffcircularoptimistupdayjsidleroute53linkcall-boundstylesbrowserslistsiginttermArrayBuffercorequerystringreplaycoercibleomitprivateflagpositiveajvconcurrencyES2016textwindowsoptionstatelessmaketrimRightimmutableterminalSetdotenvclassnames.envautoprefixerparentsentriescopycreateBigUint64ArrayfindLastmiddlewarerm -frdebuginstallertypedarraysperformantfindextrapackagegroupdataViewAsyncIteratorcode pointsMapsyntaxeventDispatcheres2015getintrinsiczeroreal-timegettersequence
7.9.152

9 months ago

7.9.151

9 months ago

7.9.146

9 months ago

7.9.148

9 months ago

7.9.147

9 months ago

7.9.149

9 months ago

6.8.135

10 months ago

6.8.134

10 months ago

6.8.137

10 months ago

6.8.136

10 months ago

7.9.150

9 months ago

6.9.146

9 months ago

6.9.145

9 months ago

6.9.144

10 months ago

6.9.143

10 months ago

6.9.142

10 months ago

6.9.141

10 months ago

6.9.140

10 months ago

6.9.139

10 months ago

6.9.138

10 months ago

6.9.137

10 months ago

6.8.133

10 months ago

6.8.132

10 months ago

6.8.131

10 months ago

6.8.130

10 months ago

6.8.129

10 months ago

6.8.128

10 months ago

6.8.127

10 months ago

5.8.124

10 months ago

5.8.125

10 months ago

5.8.126

10 months ago

5.8.127

10 months ago

5.8.123

10 months ago

5.8.122

10 months ago

5.7.122

10 months ago

5.7.121

10 months ago

5.7.120

10 months ago

5.7.118

10 months ago

5.7.119

10 months ago

5.7.117

11 months ago

5.7.116

11 months ago

5.6.116

11 months ago

5.5.116

11 months ago

5.4.116

11 months ago

5.4.115

11 months ago

5.4.114

11 months ago

5.4.113

11 months ago

5.4.112

11 months ago

5.4.111

11 months ago

5.4.110

11 months ago

5.4.109

11 months ago

3.1.34

1 year ago

3.1.33

1 year ago

3.1.36

1 year ago

3.1.35

1 year ago

3.1.38

1 year ago

3.1.37

1 year ago

3.1.39

1 year ago

3.1.30

1 year ago

4.3.70

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

4.1.52

1 year ago

4.1.53

1 year ago

4.1.54

1 year ago

4.1.55

1 year ago

4.1.50

1 year ago

4.1.51

1 year ago

4.1.56

1 year ago

4.1.57

1 year ago

4.1.58

1 year ago

3.1.44

1 year ago

3.1.41

1 year ago

3.1.40

1 year ago

3.1.43

1 year ago

3.1.42

1 year ago

4.1.44

1 year ago

4.3.68

1 year ago

4.3.67

1 year ago

4.1.49

1 year ago

4.3.69

1 year ago

4.1.45

1 year ago

4.1.46

1 year ago

4.1.47

1 year ago

4.1.48

1 year ago

3.1.18

1 year ago

3.1.17

1 year ago

5.4.106

11 months ago

3.1.23

1 year ago

5.4.107

11 months ago

3.1.22

1 year ago

5.4.108

11 months ago

3.1.25

1 year ago

3.1.24

1 year ago

5.4.102

11 months ago

3.1.27

1 year ago

5.4.103

11 months ago

3.1.26

1 year ago

5.4.104

11 months ago

3.1.29

1 year ago

5.4.105

11 months ago

3.1.28

1 year ago

3.1.21

1 year ago

3.1.20

1 year ago

3.1.19

1 year ago

5.4.94

11 months ago

5.4.95

11 months ago

5.4.92

11 months ago

5.4.93

11 months ago

5.4.90

12 months ago

5.4.91

11 months ago

4.4.83

12 months ago

4.4.82

12 months ago

4.4.81

12 months ago

4.4.80

12 months ago

4.2.64

1 year ago

4.2.65

1 year ago

4.2.66

1 year ago

4.2.67

1 year ago

4.2.60

1 year ago

4.2.61

1 year ago

4.2.62

1 year ago

4.2.63

1 year ago

5.4.100

11 months ago

5.4.101

11 months ago

5.4.98

11 months ago

5.4.99

11 months ago

5.4.96

11 months ago

5.4.97

11 months ago

5.4.83

12 months ago

5.4.84

12 months ago

4.4.72

12 months ago

4.4.71

1 year ago

4.4.70

1 year ago

4.4.76

12 months ago

4.4.75

12 months ago

4.4.74

12 months ago

4.4.73

12 months ago

4.4.79

12 months ago

4.4.78

12 months ago

4.4.77

12 months ago

5.4.89

12 months ago

5.4.87

12 months ago

5.4.88

12 months ago

4.2.58

1 year ago

5.4.85

12 months ago

4.2.59

1 year ago

5.4.86

12 months ago

2.1.17

1 year ago

2.0.17

1 year ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago