Catalog npm
Back to packageRELEASE DETAILS

2.4.0

npm

@0devs/config

extendable config

Published24 Apr 2020
Direct dependencies20
Transitive dependenciesNot calculated

README

Current package documentation

@0devs/config

extendable config for node and browser

install

npm install --save @0devs/config

usage

import Config from "@0devs/config";

const config = new Config();

config
  .defaults({server: {host: null, port: 80}})
  .from(() => Promise.resolve({server: {host: "127.0.0.1", port: 8080}}), ".")
  .from(() => Promise.resolve(9090), "server.port");

await config.read();

config.get("server.port"); // => 9090
config.config(); // {server: {host: "127.0.0.1", port: 9090}}

LICENSE

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 20

Native requirements
20 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0devs/error
Environment
{
  "local_name": "@0devs/error",
  "alias": false,
  "peer_metadata": null
}
^1.2.0runtime
deepmerge
Environment
{
  "local_name": "deepmerge",
  "alias": false,
  "peer_metadata": null
}
^3.2.0runtime
lodash.get
Environment
{
  "local_name": "lodash.get",
  "alias": false,
  "peer_metadata": null
}
4.4.xruntime
lodash.set
Environment
{
  "local_name": "lodash.set",
  "alias": false,
  "peer_metadata": null
}
4.3.xruntime
@0devs/package
Environment
{
  "local_name": "@0devs/package",
  "alias": false,
  "peer_metadata": null
}
^0.18.1development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^25.2.1development
@types/lodash.get
Environment
{
  "local_name": "@types/lodash.get",
  "alias": false,
  "peer_metadata": null
}
^4.4.6development
@types/lodash.set
Environment
{
  "local_name": "@types/lodash.set",
  "alias": false,
  "peer_metadata": null
}
^4.3.6development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^13.11.1development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^2.28.0development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^2.28.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^6.8.0development
eslint-config-airbnb-base
Environment
{
  "local_name": "eslint-config-airbnb-base",
  "alias": false,
  "peer_metadata": null
}
^14.1.0development
eslint-plugin-import
Environment
{
  "local_name": "eslint-plugin-import",
  "alias": false,
  "peer_metadata": null
}
^2.20.2development
eslint-plugin-jest
Environment
{
  "local_name": "eslint-plugin-jest",
  "alias": false,
  "peer_metadata": null
}
^23.8.2development
eslint-plugin-security
Environment
{
  "local_name": "eslint-plugin-security",
  "alias": false,
  "peer_metadata": null
}
^1.4.0development
eslint-plugin-sonarjs
Environment
{
  "local_name": "eslint-plugin-sonarjs",
  "alias": false,
  "peer_metadata": null
}
^0.5.0development
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^25.3.0development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^25.4.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^3.8.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-bpKqf+FJTgU7LtraG6ZxKlbJsesgZI3NkFfa6DKCYCqUL184u+KYbkNBFcgQIRXhpImYancIe4zHEE6XQD8yew==",
  "shasum": "bc476df044266f04114fb0c5db79f530c0f7a436",
  "tarball": "https://registry.npmjs.org/@0devs/config/-/config-2.4.0.tgz",
  "fileCount": 13,
  "unpackedSize": 23270,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo0h2CRA9TVsSAnZWagAAXjwP/3ev3mk7eUTY+uRF5ASd\n5IQuIKLECII/VyxwZFWR07TjwawK45jjuWrUT0iNYGcgaSjx1ICJ3CvN8BQs\nZhVq+WU4R4n3/LZtFZlkYAxbWuuvHQfnDX+VTJfbWSeIJtgmqIrBsKFTylSD\nTVestyVs05jLkQGp+vM8d17Nd5UvGVHF5qzORlsuHAM8pvSQrt0Dxi841vmR\nWczRFSVzGxve8l576y/Cmgozp4hI85xKL7HVxWy34+4/PPB/qfP8BR8IbTwm\nIdPbrDaRM8FuXHdHD83d8FvK+AwiWwvXumhosAG+K0lhS3rtL8vBjzQ4B8QB\nQ2iQdEzM17Rmx1n/svausH1P89d6nk6mcd1h72ryPy9TqC6rY4+IaUG3uOL9\nNkYdNYFYS1lpSZrxqQzrprz3qg6T9RCigEkZjnGjLmHfq4e9uX81YQQ3TwNm\nETuP6TLu2vO0kRG1GEZe3+pCJrqRXZrbrX5JCa5nBT5SLQ2tCbX3vVadm858\n3DS61MWA1NVt8qk/MWP8sZ759g9VnGu1KBrnWIYQfETbLYI4UJM+14fZgiHP\nQbV9sTZPWQ2TIKmgp8cpK3+BkK3I7O5YHaUtKmwTt9lXNu5NQeNiCadiGQkx\npvMiXhoX+nBpEfW/3eGX64QFSZswnaZfUiQyQDSZRqgWYM7cNAnSKMh+nvaY\n76Su\r\n=g4Q6\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIA1N3cvDWN9Q+skv591Dvuzb7xKyYAnzyuQ/Vuh4Sth6AiEA0u4llkEUI+wqyrjrZ+KsPOD1+LcJZ0xrjLA5NHT+euw="
    }
  ]
}

Repository

PENDING
0devs/node-config

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
mafjs/config

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:4e5ac0c790160ec495af8c702b08d2a510f16bfb3568e6310fc0628f0cbe500f

Other collected versions

2.3.015 May2.2.015 May2.1.015 May2.0.014 May1.4.015 Apr1.2.25 DecView all collected versions →