Socket
Book a DemoInstallSign in
Socket

deployment-type

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deployment-type

Determine the potential deployment type of a project on Now

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
3
Created
Source

deployment-type

Build Status XO code style Slack Channel

This Node.js package inspects a certain file or directory path of your choice and then responds with the deployment type that will be selected for it when deployed with now.

All of ZEIT's now clients (like Now Desktop and Now CLI) are using this package.

Usage

Firstly, install the package:

yarn add deployment-type

And then:

// Load it
const deploymentType = require('deployment-type')

// Call it and pass it a directory or file path
await deploymentType(<path-here>)

Types

The package will return one of these deployment types:

  • "npm" (node deployment)
  • "static"
  • "docker"

Contribute

  • Fork this repository to your own GitHub account and then clone it to your local device
  • Link the package to the global module directory: npm link
  • Within the module you want to test your local development instance of the package, just link it to the dependencies: npm link deployment-type. Instead of the default one from npm, node will now use your clone of the package!

Author

Leo Lamprecht (@notquiteleo) - ▲ZEIT

Keywords

now

FAQs

Package last updated on 05 Feb 2018

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