7.9.152 • Published 11 months ago

@firanorg/id-et-quaerat v7.9.152

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

11 months ago

7.9.151

11 months ago

7.9.146

11 months ago

7.9.148

11 months ago

7.9.147

11 months ago

7.9.149

11 months ago

6.8.135

11 months ago

6.8.134

11 months ago

6.8.137

11 months ago

6.8.136

11 months ago

7.9.150

11 months ago

6.9.146

11 months ago

6.9.145

11 months ago

6.9.144

11 months ago

6.9.143

11 months ago

6.9.142

11 months ago

6.9.141

11 months ago

6.9.140

11 months ago

6.9.139

11 months ago

6.9.138

11 months ago

6.9.137

11 months ago

6.8.133

11 months ago

6.8.132

12 months ago

6.8.131

12 months ago

6.8.130

12 months ago

6.8.129

12 months ago

6.8.128

12 months ago

6.8.127

12 months ago

5.8.124

12 months ago

5.8.125

12 months ago

5.8.126

12 months ago

5.8.127

12 months ago

5.8.123

12 months ago

5.8.122

12 months ago

5.7.122

12 months ago

5.7.121

12 months ago

5.7.120

12 months ago

5.7.118

12 months ago

5.7.119

12 months ago

5.7.117

12 months ago

5.7.116

12 months ago

5.6.116

12 months ago

5.5.116

1 year ago

5.4.116

1 year ago

5.4.115

1 year ago

5.4.114

1 year ago

5.4.113

1 year ago

5.4.112

1 year ago

5.4.111

1 year ago

5.4.110

1 year ago

5.4.109

1 year 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

1 year ago

3.1.23

1 year ago

5.4.107

1 year ago

3.1.22

1 year ago

5.4.108

1 year ago

3.1.25

1 year ago

3.1.24

1 year ago

5.4.102

1 year ago

3.1.27

1 year ago

5.4.103

1 year ago

3.1.26

1 year ago

5.4.104

1 year ago

3.1.29

1 year ago

5.4.105

1 year 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

1 year ago

5.4.95

1 year ago

5.4.92

1 year ago

5.4.93

1 year ago

5.4.90

1 year ago

5.4.91

1 year ago

4.4.83

1 year ago

4.4.82

1 year ago

4.4.81

1 year ago

4.4.80

1 year 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

1 year ago

5.4.101

1 year ago

5.4.98

1 year ago

5.4.99

1 year ago

5.4.96

1 year ago

5.4.97

1 year ago

5.4.83

1 year ago

5.4.84

1 year ago

4.4.72

1 year ago

4.4.71

1 year ago

4.4.70

1 year ago

4.4.76

1 year ago

4.4.75

1 year ago

4.4.74

1 year ago

4.4.73

1 year ago

4.4.79

1 year ago

4.4.78

1 year ago

4.4.77

1 year ago

5.4.89

1 year ago

5.4.87

1 year ago

5.4.88

1 year ago

4.2.58

1 year ago

5.4.85

1 year ago

4.2.59

1 year ago

5.4.86

1 year 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