Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

config-ext

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-ext - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

13

obj/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getOrElse(config, path, fallback) {
if (config.has(path))
return config.get(path);
return fallback;
}
exports.getOrElse = getOrElse;
function assert(config, path, message) {
if (!config.has(path)) {
throw new Error('missing required config: ' + path + message ? '. ' + message : '');
}
}
exports.assert = assert;
//# sourceMappingURL=index.js.map

6

package.json
{
"name": "config-ext",
"version": "1.0.0",
"version": "1.0.1",
"description": "helpful extension methods for [`config`](https://www.npmjs.com/package/config)",

@@ -8,2 +8,6 @@ "repository": "git@github.com:js-n/config-ext.git",

"types": "obj",
"files": [
"obj/*.js",
"obj/*.d.ts"
],
"scripts": {

@@ -10,0 +14,0 @@ "test": "echo \"Error: no test specified\" && exit 1"

.npmignore
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc