nn 35a927ef98 迁移校园资讯游览器客户端 8 лет назад
..
lib 35a927ef98 迁移校园资讯游览器客户端 8 лет назад
.npmignore 35a927ef98 迁移校园资讯游览器客户端 8 лет назад
LICENSE 35a927ef98 迁移校园资讯游览器客户端 8 лет назад
README.md 35a927ef98 迁移校园资讯游览器客户端 8 лет назад
package.json 35a927ef98 迁移校园资讯游览器客户端 8 лет назад

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