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

@hammerframework/hammer-dev-server

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hammerframework/hammer-dev-server

The hamer dev server looks for "lambda functions" in the directory (default: `./api/src/functions`) specified in your `hammer.toml` configuration file.

  • 0.0.1-alpha.12
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

The Hammer Development Server

The hamer dev server looks for "lambda functions" in the directory (default: ./api/src/functions) specified in your hammer.toml configuration file.

Each lambda function is mapped to a URI based on their filename, as an example: ./api/src/functions/graphql.js would be accessible at http://localhost:8911/graphql.

The ./api directory is watched for modifications, when they are detected the modules are reimported.

A lambda function must export a handler. You can execute the supplied callback function:

export const handler = (event, context, callback) => {
  return callback(null, { status: 200, body: 'Hello, world' })
}

FAQs

Package last updated on 29 Oct 2019

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