UNPKG

yapm

Version:

package manager for io.js (npm fork)

33 lines (29 loc) 539 B
input: | { "name": "test", "version": "0.0.0", "bundleDependencies": [ "foo", "bar" ], "license": "BSD-2-Clause" } output: | { "name": "test", "version": "0.0.0", "bundleDependencies": [ "foo", "bar", "baz", "quux" ], "license": "BSD-2-Clause" } test: !!js/function | function(jju, input) { obj = jju.parse(input) obj.bundleDependencies.push('baz') obj.bundleDependencies.push('quux') return jju.update(input, obj, {mode:'json'}) }