package
Determine the potential deployment type of a project on Now
npm install deployment-typeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 7 packages.
115.5 kB
Includes dependencies.
3 direct · 3 outdated
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.
Firstly, install the package:
yarn add deployment-typeAnd then:
// Load it
const deploymentType = require('deployment-type')
// Call it and pass it a directory or file path
await deploymentType(<path-here>)The package will return one of these deployment types:
npm linknpm link deployment-type. Instead of the default one from npm, node will now use your clone of the package!Leo Lamprecht (@notquiteleo) - ▲ZEIT
rauchg
rauchg@gmail.com