hpal is the command-line interface (CLI) for the hapi pal ecosystem, designed to streamline the development of Hapi.js applications. Currently at version 2.6.0, hpal offers tools for rapidly scaffolding new Hapi projects based on the official pal boilerplate, generating common application components like routes, models (using schwifty), and services (using schmervice) through haute-couture conventions, and providing a command-line interface to search Hapi and related package documentation (e.g., Joi, Toys). It also enables the execution of custom commands defined by Hapi server plugins. The tool is maintained as part of the hapipal initiative, focusing on convention over configuration for Hapi development, and is primarily intended for use via npx as a development dependency.
npm install hpalVerified import paths — ran on the pinned version, not inferred.
Installs hpal as a dev dependency and then uses npx to search the Hapi.js documentation for the `h.response` method specific to version 18.1.0.
Ensure your project's Hapi.js version is 17 or higher and your Node.js runtime is 8 or higher.
Install with `npm install --save-dev hpal` and run using `npx hpal <command>`.
Ensure your project is configured for haute-couture with a `.hc.js` file. Projects scaffolded with `hpal new` are pre-configured.
Install hpal as a dev dependency (`npm install --save-dev hpal`) and then run commands using `npx hpal <command>`.
Create a `.hc.js` file in your project's root, even if empty, or scaffold your project using `npx hpal new` which includes this configuration.
Update your project's Hapi.js dependency to match the requirements of the generated code or plugins.