UNPKG

better-npm-init

Version:

A better version of npm init, with templates and more. Usage: better-npm-init <template> [--yarn] [--install] [--git] [--yes] [--help]

13 lines (10 loc) 276 B
'use strict'; const is = require('@sindresorhus/is'); module.exports = function deepFreeze(object) { for (const [key, value] of Object.entries(object)) { if (is.plainObject(value) || is.array(value)) { deepFreeze(object[key]); } } return Object.freeze(object); };