Enhances npm with additional configuration and tool management capabilities, including a key-value store for project setups.
Go to file
2017-07-09 19:05:03 +02:00
dist update to use tapbundle 2017-07-09 19:05:03 +02:00
docs add docs 2017-04-02 11:55:45 +02:00
test update to use tapbundle 2017-07-09 19:05:03 +02:00
ts update to use tapbundle 2017-07-09 19:05:03 +02:00
.gitignore update to use tapbundle 2017-07-09 19:05:03 +02:00
.gitlab-ci.yml update to latest standards 2017-03-18 16:23:47 +01:00
npmextra.json update npmextra.json 2017-03-18 16:28:14 +01:00
package.json update to use tapbundle 2017-07-09 19:05:03 +02:00
README.md update to latest standards 2017-03-18 16:23:47 +01:00
tslint.json now adheres to standard js 2016-09-16 22:28:38 +02:00
yarn.lock update to use tapbundle 2017-07-09 19:05:03 +02:00

npmextra

do more with npm

Availabililty

npm git git docs

Status for master

build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

The main purpose of npmextra is to configure different tools using one npmextra.json. This way complex setups avoid additional complexity caused by too many configuration files.

npmextra.json

{
    "sometool": {
        "defaultKey1": "awesomeValueFromConfig"
    }
}
import { Npmextra } from 'npmextra'

let myNpmExtra = new Npmextra('my/path/to/cwd') // cwd argument is optional 
mergedData = myNpmExtra.dataFor(
    'sometool',
    { // gets merged with whatever is in the configfile
        defaultKey1: 'defaultValue1', // so this will get overwritten with "awesomeValueFromConfig"
        defaultKey2: 'defaultValue2' // this one will pass through unaltered
    }
)

For further information read the linked docs at the top of this README.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer