hoek / 4.0.2 last updated 4 days ago created on Sep 16th 2012

Install

npm install --save hoek

Clone

git clone git@github.com:hapijs/hoek.git

dependencies

No dependencies listed.

maintainers

hueniverse hueniverse
wyatt
nlf

versions 98 total

4.0.2 4 days ago hueniverse
4.0.1 2 months ago nlf
4.0.0 3 months ago nlf
3.0.4 9 months ago nlf
3.0.3 9 months ago nlf
3.0.2 9 months ago nlf
3.0.1 9 months ago hueniverse
3.0.0 9 months ago nlf
2.16.3 10 months ago nlf
2.16.2 10 months ago nlf
2.16.1 10 months ago nlf
2.16.0 a year ago nlf
2.15.0 a year ago nlf
2.14.0 a year ago nlf
2.13.1 a year ago nlf
2.13.0 a year ago nlf
2.12.0 a year ago nlf
2.11.1 a year ago nlf
2.11.0 2 years ago nlf
2.10.0 2 years ago hueniverse
2.9.1 2 years ago nlf
2.9.0 2 years ago nlf
2.8.1 2 years ago nlf
2.8.0 2 years ago nlf
2.7.0 2 years ago nlf
2.6.0 2 years ago nlf
2.5.1 2 years ago nlf
2.5.0 2 years ago nlf
2.4.1 2 years ago hueniverse
2.4.0 2 years ago hueniverse
2.3.0 2 years ago hueniverse
2.2.0 2 years ago hueniverse
2.1.1 2 years ago hueniverse
2.1.0 2 years ago hueniverse
2.0.0 2 years ago hueniverse
1.5.2 2 years ago hueniverse
1.5.1 2 years ago hueniverse
1.5.0 2 years ago hueniverse
1.4.1 3 years ago hueniverse
1.4.0 3 years ago hueniverse
1.3.0 3 years ago hueniverse
1.2.0 3 years ago hueniverse
1.1.2 3 years ago hueniverse
1.1.1 3 years ago hueniverse
1.1.0 3 years ago hueniverse
1.0.3 3 years ago hueniverse
1.0.2 3 years ago hueniverse
1.0.1 3 years ago hueniverse
1.0.0 3 years ago wyatt
0.10.0 3 years ago hueniverse
0.9.1 3 years ago hueniverse
0.9.0 3 years ago hueniverse
0.8.5 3 years ago hueniverse
0.8.4 3 years ago hueniverse
0.8.3 3 years ago hueniverse
0.8.2 3 years ago hueniverse
0.8.1 3 years ago hueniverse
0.8.0 3 years ago hueniverse
0.7.6 3 years ago hueniverse
0.7.5 3 years ago hueniverse
0.7.4 3 years ago hueniverse
0.7.3 3 years ago hueniverse
0.7.2 3 years ago hueniverse
0.7.1 3 years ago hueniverse
0.7.0 3 years ago hueniverse
0.6.2 3 years ago hueniverse
0.6.1 3 years ago hueniverse
0.6.0 3 years ago hueniverse
0.5.0 3 years ago hueniverse
0.4.5 3 years ago hueniverse
0.4.4 3 years ago hueniverse
0.4.3 3 years ago hueniverse
0.4.2 3 years ago hueniverse
0.4.1 3 years ago hueniverse
0.4.0 3 years ago hueniverse
0.3.0 3 years ago hueniverse
0.2.0 4 years ago hueniverse
0.1.0 4 years ago hueniverse
0.0.21 4 years ago hueniverse
0.0.19 4 years ago hueniverse
0.0.18 4 years ago hueniverse
0.0.17 4 years ago hueniverse
0.0.16 4 years ago hueniverse
0.0.15 4 years ago hueniverse
0.0.14 4 years ago hueniverse
0.0.13 4 years ago hueniverse
0.0.12 4 years ago hueniverse
0.0.11 4 years ago hueniverse
0.0.10 4 years ago hueniverse
0.0.9 4 years ago hueniverse
0.0.8 4 years ago hueniverse
0.0.7 4 years ago hueniverse
0.0.6 4 years ago thegoleffect
0.0.5 4 years ago hueniverse
0.0.4 4 years ago hueniverse
0.0.3 4 years ago anonymous
0.0.2 4 years ago anonymous
0.0.1 4 years ago anonymous
196340 Downloads yesterday.

readme

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:

1
2
3
4
5
6
7
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

Resolving all dependencies.. This could take a while as our cache is not yet fully warmed up.