Enhances npm with additional configuration and tool management capabilities, including a key-value store for project setups.
Go to file
2016-09-16 22:28:38 +02:00
dist now adheres to standard js 2016-09-16 22:28:38 +02:00
test add boolean for wether configfile is present 2016-07-18 20:29:29 +02:00
ts now adheres to standard js 2016-09-16 22:28:38 +02:00
.gitignore now adheres to standard js 2016-09-16 22:28:38 +02:00
.gitlab-ci.yml fix dpendency version 2016-07-17 02:09:58 +02:00
package.json 1.0.9 2016-08-19 11:04:12 +02:00
README.md now adheres to standard js 2016-09-16 22:28:38 +02:00
tslint.json now adheres to standard js 2016-09-16 22:28:38 +02:00

npmextra

do more with npm.

npmextra is a hub for a series of js tools that help writing, documenting and maintaining npm modules.

Availabililty

npm git git docs

Status for master

build status coverage report Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

The main purpose of npmextra is to configure different tools using one npmextra.json. This way complex setups avaoid complexity through many configuration files.

npmextra.json

{
    "sometool": {
        "defaultKey1": "awesomeValueFromConfig"
    }
}
import * as npmextra from 'npmextra'

npmextra.dataFor({
    toolName:'sometool',
    defaultSettings: { // 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
    },
    cwd?: string // lets you specifiy a custom current working directory to look for the npmextra.json
})

npm