Submit
Path:
~
/
/
usr
/
local
/
lib
/
node_modules
/
npm
/
node_modules
/
request
/
node_modules
/
hawk
/
node_modules
/
hoek
/
File Content:
README.md
 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](https://github.com/lodash/lodash) or [underscore](https://github.com/jashkenas/underscore). [](http://travis-ci.org/hapijs/hoek) <a href="https://andyet.com"><img src="https://s3.amazonaws.com/static.andyet.com/images/%26yet-logo.svg" align="right" /></a> Lead Maintainer: [Nathan LaFreniere](https://github.com/nlf) **hoek** is sponsored by [&yet](https://andyet.com) ## 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: ```javascript 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**](API.md)
Submit
FILE
FOLDER
Name
Size
Permission
Action
lib
---
0755
.npmignore
22 bytes
0644
LICENSE
1836 bytes
0644
README.md
1377 bytes
0644
package.json
1527 bytes
0644
N4ST4R_ID | Naxtarrr