Closed acpmasquerade closed 8 years ago
If you want to do this without using the JavaScript-API, you can do the following
# This has to be done within another project, so we create one
mkdir bp-test && cd bp-test && npm init -y
# Install bootprint and bootprint-openapi as local dependencies of the project
npm install bootprint bootprint-openapi
# Run bootprint from within the node_modules folder
./node_modules/.bin/bootprint openapi http://petstore.swagger.io/v2/swagger.json target
You can also specify a relative path to the location of bootprint-openapi
. This code will first try to load the module using require('bootprint-openapi')
. If it doesn't find anything, it will look for a directory ./openapi
in the current working directory and require
that.
What am I missing ?