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.
// Load itconst deploymentType = require('deployment-type')// Call it and pass it a directory or file pathawait 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!