Node utilities shared amongst the extended hapi universe
JavaScript
Latest commit 248a3ed Jul 27, 2016 @hueniverse hueniverse Closes #195
Permalink
Failed to load latest commit information.
images cleanup for hapijs/contrib#31 Jun 4, 2015
lib Directly get the value May 31, 2016
test update code to 3.x, closes #191 Jun 1, 2016
.gitignore Now using lab and added missing tests Mar 18, 2013
.npmignore Closes #195 Jul 27, 2016
.travis.yml Closes #195 Jul 27, 2016
API.md docs Apr 25, 2016
CONTRIBUTING.md Added random. Sep 21, 2014
LICENSE Closes #195 Jul 27, 2016
README.md docs Apr 25, 2016
package.json Closes #195 Jul 27, 2016

README.md

hoek Logo

Utility methods for the hapi ecosystem. This module is not intended to solve every problem for everyone, but rather as a central place to store hapi-specific methods. If you're looking for a general purpose utility module, check out lodash or underscore.

Build Status

Lead Maintainer: Nathan LaFreniere

hoek is sponsored by &yet

Usage

The Hoek library contains some common functions used within the hapi ecosystem. It comes with useful methods for Arrays (clone, merge, applyToDefaults), Objects (removeKeys, copy), Asserting and more.

For example, to use Hoek to set configuration with default options:

const Hoek = require('hoek');

const default = {url : "www.github.com", port : "8000", debug : true};

const config = Hoek.applyToDefaults(default, {port : "3000", admin : true});

// In this case, config would be { url: 'www.github.com', port: '3000', debug: true, admin: true }

Documentation

API Reference