Socket
Socket
Sign inDemoInstall

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


Version published
Weekly downloads
148
decreased by-26.37%
Maintainers
1
Weekly downloads
 
Created
Source

vercel-deno-runtime

This runtime is currently on development and might be broken on some specific cases specified in the Known Limitation section.

Deno runtime for vercel.

Usage

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

Default configs

  • DENO_VERSION : "latest"
  • DENO_CONFIG : ""
  • DENO_UNSTABLE : false

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

Known limitation

  • only works on linux, for now.

TODO

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

References

  • deno-lambda by Andy Hayden
  • vercel-deno by TooTallNate
  • now-deno by lucacasonato

FAQs

Package last updated on 22 Jun 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