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

vercel-deno-dev

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vercel-deno-dev

run deno on vercel

  • 0.1.0-57f4767322a80917abc95f616760cbffd9e09009
  • npm
  • Socket score

Version published
Weekly downloads
97
decreased by-25.95%
Maintainers
1
Weekly downloads
 
Created
Source

Deno Runtime for Vercel (vercel-deno-runtime)

A runtime designed for those who wants to migrate serverless functions built on Node runtime to 🦕Deno that is compatible with ▲Vercel's NowRequest and NowResponse.

Usage

// vercel.json
{
  "functions": {
    "api/**/*.{ts,tsx}": {
      "runtime": "vercel-deno-runtime"
    }
  },
  "build":{
    "env":{
      "DENO_VERSION":"1.1.0 OR latest",
      "DENO_CONFIG":"tsconfig.json",
      "DENO_UNSTABLE":true
    }
  }
}
// /api/hello.ts
import { NowRequest, NowResponse } from "https://unpkg.com/vercel-deno-runtime@latest/dist/boot/nowHandler.ts";
  
export default async function handler(req:NowRequest,res:NowResponse) {
  res.statuscode(200).send(`Welcome to deno ${Deno.version.deno} 🦕`);
}

Note: vercel v17.x or above are required to use the above configuration.

Configurations

NameDescriptionDefault
DENO_VERSIONWhich deno version to be used for serverless functionslatest
DENO_CONFIGImplement custom tsconfig.json to be used for serverless functions<empty>
DENO_UNSTABLEadd --unstable flag at build-time deno cache and runtime deno runfalse

Development

  • Suport Now Launcher
  • add support for windows
  • implement caching for downloading deno
  • add support for macos

References

FAQs

Package last updated on 21 Jul 2020

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