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

@netlify/edge-bundler

Package Overview
Dependencies
Maintainers
18
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/edge-bundler

Intelligently prepare Netlify Edge Functions for deployment

  • 5.3.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130K
increased by1.2%
Maintainers
18
Weekly downloads
 
Created
Source

Build Node

Edge Bundler

Intelligently prepare Netlify Edge Functions for deployment.

Usage

  1. Install this module as a dependency in your project

    npm install @netlify/edge-bundler --save
    
  2. Import it and create a bundle from a directory of Edge Functions and a list of declarations.

    import { bundle } from '@netlify/edge-bundler'
    
    // List of directories to search for Edge Functions.
    const sourceDirectories = [
        "/repo/netlify/edge-functions",
        "/repo/.netlify/edge-functions"
    ]
    
    // Directory where bundle should be placed.
    const distDirectory = "/repo/.netlify/edge-functions-dist"
    
    // List of Edge Functions declarations.
    const declarations = [
        {function: "user-1", path: "/blog/*"},
        {function: "internal-2", path: "/"}
    ]
    
    await bundle(sourceDirectories, distDirectory, declarations)
    

Contributors

Please see CONTRIBUTING.md for instructions on how to set up and work on this repository. Thanks for contributing!

FAQs

Package last updated on 07 Dec 2022

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