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

oconf

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oconf - npm Package Compare versions

Comparing version 0.0.9 to 0.1.0

test/index.js

68

package.json
{
"author": "Morten Siebuhr <sbhr@sbhr.dk>",
"name": "oconf",
"description": "Configuration",
"version": "0.0.9",
"repository": {
"type": "git",
"url": "https://github.com/One-com/node-oconf.git"
},
"homepage": "https://github.com/One-com/node-oconf",
"main": "lib/index.js",
"keywords": [
"cjson",
"config",
"configuration",
"include",
"inheritance",
"json"
],
"bin": {
"oconf": "bin/oconf"
},
"scripts": {
"test": "vows"
},
"engines": {
"node": "*"
},
"dependencies": {
"cjson": "= 0.0.6",
"optimist": "= 0.2.8"
},
"devDependencies": {
"underscore": "*",
"vows": "*"
}
"author": "Morten Siebuhr <sbhr@sbhr.dk>",
"name": "oconf",
"description": "Configuration",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/One-com/node-oconf.git"
},
"homepage": "https://github.com/One-com/node-oconf",
"main": "lib/index.js",
"keywords": [
"cjson",
"config",
"configuration",
"include",
"inheritance",
"json"
],
"bin": {
"oconf": "bin/oconf"
},
"scripts": {
"test": "mocha"
},
"dependencies": {
"cjson": "= 0.0.6",
"optimist": "= 0.2.8",
"underscore": "*"
},
"devDependencies": {
"expect.js": "*",
"mocha": "*"
}
}

@@ -10,20 +10,26 @@ OConf

// default-settings.cjson
{
"some-setting": "default value",
"value": 100
}
```javascript
// default-settings.cjson
{
"some-setting": "default value",
"value": 100
}
```
// my-config.cjson
{
"#include": "./default-settings.json",
"value": 50
}
```javascript
// my-config.cjson
{
"#include": "./default-settings.json",
"value": 50
}
```
Will result in a config with:
{
"some-setting": "default-value",
"value": 50
}
```javascript
{
"some-setting": "default-value",
"value": 50
}
```

@@ -33,3 +39,3 @@ Tests

Download/clone, run `npm install --dev` and then either `vows --spec` or `npm test`.
Download/clone, run `npm install --dev` and then `npm test`.

@@ -36,0 +42,0 @@ License

Sorry, the diff of this file is not supported yet

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