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

@fastly/expressly

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastly/expressly

Express-style router for Fastly's Compute@Edge.

  • 2.0.2--canary.46.6577223555.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
722
decreased by-18.97%
Maintainers
3
Weekly downloads
 
Created
Source

expressly

Express-style router for Fastly's Compute@Edge.

Using expressly

Check out the docs.


First, head over to developer.fastly.com to get started with JavaScript on Fastly's Compute@Edge:

  1. Learn about Compute@Edge: developer.fastly.com/learning/compute/
  2. Create your first JavaScript app: developer.fastly.com/learning/compute/javascript/

Install expressly

Install expressly from the npm registry:

npm i @fastly/expressly
yarn add @fastly/expressly

Your first expressly app

Replace the contents of your Compute@Edge app's src/index.js with the following:

import { Router } from "@fastly/expressly";

const router = new Router();

router.get("/", async (req, res) => {
  return res.send("Hello world!");
});

router.listen();

Try it out

Start your app locally:

fastly compute serve

This will start your service on http://localhost:7676.

Examples

Check out the JavaScript code examples for Compute@Edge on Fastly's Developer Hub.

Keywords

FAQs

Package last updated on 19 Oct 2023

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