Socket
Socket
Sign inDemoInstall

apes

Package Overview
Dependencies
80
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apes

A tiny application and HTTP API framework for Express.js.


Version published
Maintainers
1
Install size
5.54 MB
Created

Readme

Source

apes.js

END OF DEVELOPMENT NOTICE - This package has been discontinued

A tiny application and HTTP API framework for Express.js.

Supported implementations.

apes.js is written using async/await, which is available from Node 7.0.0 using --harmony_async-await flag.

Usage

Standalone application

To create a Node.js application which already takes care of logging, call the Application.execute and provide a main function.

The function will be called with a application object, which has a logger setup.

const apes = require('apes')

apes.Application.execute('confRoot', application => {
  // Do something here
})

HTTP Server

To create a fully working light-weight HTTP server, call HTTPServer.execute providing a root key in the package.json and a main function.

The function will be called with a server object, which has a express property to define routes.

const apes = require('apes')

apes.HTTPServer.execute('confRoot.http', server => {
  // Do something here - Core logic goes here, by adding routes to server.express
})

API Documentation

The API documentation can be found here.

Contributing to apes.js

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

Copyright (C) 2016 and above Shogun mailto:shogun@cowtech.it.

Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.

FAQs

Last updated on 11 Dec 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc