Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@axa/bautajs-express

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axa/bautajs-express

A bautaJS Express.js plugin. Allow auto exposing the bautaJS operations.

  • 4.0.0-alpha.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

bautajs-express

A Express.js plugin for Bauta.js.

How to install

  npm install @axa/bautajs-express

Usage

const express = require('express');
const { BautaJSExpress } = require('@axa/express');
const apiDefinition = require('../../api-definition.json');

const app = express();
const bautaJSExpress = new BautaJSExpress({ apiDefinition });
const router = await bautaJSExpress.buildRouter();

app.use('/v1', router);

app.listen(3000, err => {
  if (err) throw err;
  console.info('Server listening on localhost: 3000');
});

See a full example on Example of a project from scratch.

Validation

Fastify has an out-of-the-box request validation, therefore the builtin Bauta.js request validations are disabled on this plugin.

Copyright (c) AXA Group. All rights reserved. Licensed under the (MIT / Apache 2.0) License.

Third party dependencies licenses

Production

Development

Keywords

FAQs

Package last updated on 07 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc