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

@ladjs/api

Package Overview
Dependencies
Maintainers
2
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ladjs/api

API server for Lad

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38
decreased by-82.49%
Maintainers
2
Weekly downloads
 
Created
Source

@ladjs/api

build status code coverage code style styled with prettier made with lass license

API server for Lad

Table of Contents

Install

npm:

npm install @ladjs/api

yarn:

yarn add @ladjs/api

Usage

#!/usr/bin/env node
const Server = require('@ladjs/api');
const Graceful = require('@ladjs/graceful');

const routes = require('./routes');
const { i18n, logger } = require('./helpers');
const { Users } = require('./app/models');

const server = new Server({
  Users,
  routes: routes.api,
  logger,
  i18n
});

if (!module.parent) {
  server.listen();
  const graceful = new Graceful({ server, logger });
  graceful.listen();
}

module.exports = server;

Contributors

NameWebsite
Nick Baughhttp://niftylettuce.com/

License

MIT © Nick Baugh

Keywords

FAQs

Package last updated on 30 Nov 2017

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