Socket
Book a DemoInstallSign in
Socket
y

ys13

npm

Packages

Co-maintainers

39 packages

@maxdome/cache

```javascript const cache = require('@maxdome/cache')(client);

@maxdome/cbe2

## Get an asset without knowing the type

@maxdome/cors

``` app.use(require('@maxdome/cors')()); ```

@maxdome/duration

```javascript const duration = require('@maxdome/duration');

@maxdome/eb-deploy

CLI for AWS Elastic Beanstalk deployments

@maxdome/env

```javascript require('@maxdome/env'); ```

@maxdome/exception-handling

```javascript require('@maxdome/exception-handling')({ logging }); ```

@maxdome/express

``` const app = require('@maxdome/express')();

@maxdome/handler

```javascript const handler = require('@maxdome/handler');

@maxdome/health

Provides an `/health` endpoint response with the health of the app in the [Spring Boot format](https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-monitoring.html#production-ready-health-access-restrictions).

@maxdome/healthcheck

``` const healthChecks = { service1: 'https://service1.com/ping', service2: { method: 'POST', url: 'https://service2.com/ping' }, service3: { url: 'https://service3.com/ping', options: { headers: { 'Authorization': `Basic dXNlcjpwYXNz` } } }, };

@maxdome/health-got

Provides check function for [`health`](http://npmjs.com/@maxdome/health) performing HTTP requests.

@maxdome/health-mongoose

Provides check function for [`health`](http://npmjs.com/@maxdome/health) checking MongoDB connection using [`mongoose`](https://www.npmjs.com/package/mongoose).

@maxdome/health-mongoskin

Provides check function for [`health`](http://npmjs.com/@maxdome/health) checking MongoDB connection using [`mongoskin`](https://www.npmjs.com/package/mongoskin).

@maxdome/http-auth

``` const httpAuth = require('@maxdome/http-auth')({ user: process.env.HTTP_AUTH_USER, password: process.env.HTTP_AUTH_PASSWORD, }); ```

@maxdome/info

``` app.use('/info', require('@maxdome/info')()); ```

@maxdome/logging

``` const logging = require('@maxdome/logging')({ level: process.env.LOG_LEVEL }); const serverLogger = logging('server'); ```

@maxdome/logging-middleware

``` app.use(require('@maxdome/logging-middleware')({ logging, options, })); ```

@maxdome/notify

Send CD / CI notifications from GitLab CI

@maxdome/parse-duration

## 1 hour 20 minutes in milliseconds

@maxdome/prettier

```bash npm i -g @maxdome/prettier ```

@maxdome/redis

```javascript const redis = require('@maxdome/redis')(process.env.REDIS_URL);

@maxdome/redis-flushall

## The controller

@maxdome/redis-flushdb

## The controller

@maxdome/request

## Simplest usage