Enhances npm with additional configuration and tool management capabilities, including a key-value store for project setups.
Go to file
2016-09-24 21:53:44 +02:00
dist fix compiled filenames 2016-09-24 21:53:44 +02:00
test added new NpmExtra class 2016-09-24 16:44:48 +02:00
ts fix compiled filenames 2016-09-24 21:53:44 +02:00
.gitignore now adheres to standard js 2016-09-16 22:28:38 +02:00
.gitlab-ci.yml fix README 2016-09-17 18:12:32 +02:00
package.json fix compiled filenames 2016-09-24 21:53:44 +02:00
README.md added back ts generics 2016-09-24 16:52: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 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
    }
)

npm