🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

opted

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opted - npm Package Compare versions

Comparing version

to
1.0.1

.codeclimate.yml

6

Gruntfile.js

@@ -6,4 +6,2 @@ var tm = require('task-master');

jit: {
travis: 'grunt-travis-matrix',
matrix: 'grunt-travis-matrix',
istanbul: 'grunt-simple-istanbul'

@@ -13,5 +11,5 @@ }

grunt.registerTask('mocha', ['mochaTest:test']);
grunt.registerTask('default', ['jshint:all', 'mocha']);
grunt.registerTask('default', ['eslint:lib', 'mocha']);
grunt.registerTask('coverage', ['istanbul', 'open:coverage']);
grunt.registerTask('ci', ['default', 'travis']);
grunt.registerTask('ci', ['default', 'travisMatrix']);
};

@@ -11,7 +11,7 @@ var _ = require('lodash').runInContext();

// Build the flag as --key
var flag = _.kebabCase(key);
var flag = key.length === 1 ? key : _.kebabCase(key);
// Set = style options, e.g. --fruit=banana
if (key.slice(-1) === '=') {
flag += '=' + v;
flag = `${flag}=${v}`;
}

@@ -26,3 +26,3 @@

flag = prefix + flag;
// Add the option to the list

@@ -29,0 +29,0 @@ memo.push(flag);

{
"name": "opted",
"version": "1.0.0",
"version": "1.0.1",
"description": "Stringify an object to command line options",
"main": "lib/opted.js",
"scripts": {
"test": "grunt"
"test": "grunt",
"codeclimate": "codeclimate-test-reporter < coverage/lcov.info",
"travis": "grunt ci"
},

@@ -35,22 +37,27 @@ "repository": {

"devDependencies": {
"coffee-script": "^1.9.3",
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.6.0",
"codeclimate-test-reporter": "^0.4.1",
"coffee-script": "^1.12.4",
"eslint-codeframe-formatter": "^1.0.2",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-jshint": "^0.11.2",
"grunt-contrib-watch": "^0.6.1",
"grunt-mocha-test": "^0.12.7",
"grunt-contrib-watch": "^1.0.0",
"grunt-eslint": "^19.0.0",
"grunt-mocha-test": "^0.13.2",
"grunt-open": "^0.2.3",
"grunt-simple-istanbul": "0.0.1",
"grunt-travis-matrix": "0.0.5",
"indeed": "^1.0.6",
"jshint-stylish": "^2.0.1",
"mocha": "^2.2.5",
"grunt-shell": "^2.1.0",
"grunt-simple-istanbul": "^3.0.3",
"grunt-travis-matrix": "^1.0.0",
"mocha": "^3.2.0",
"mocha-given": "^0.1.3",
"proxyquire": "^1.6.0",
"sinon": "^1.15.4",
"task-master": "^2.2.1"
"should": "^11.2.1",
"task-master": "^2.3.0"
},
"dependencies": {
"lodash": "^3.10.0"
"lodash": "^4.17.4"
},
"engines": {
"node": ">=4"
}
}

@@ -75,2 +75,2 @@ [![Build Status](https://travis-ci.org/tandrewnichols/opted.png)](https://travis-ci.org/tandrewnichols/opted) [![downloads](http://img.shields.io/npm/dm/opted.svg)](https://npmjs.org/package/opted) [![npm](http://img.shields.io/npm/v/opted.svg)](https://npmjs.org/package/opted) [![Code Climate](https://codeclimate.com/github/tandrewnichols/opted/badges/gpa.svg)](https://codeclimate.com/github/tandrewnichols/opted) [![Test Coverage](https://codeclimate.com/github/tandrewnichols/opted/badges/coverage.svg)](https://codeclimate.com/github/tandrewnichols/opted) [![dependencies](https://david-dm.org/tandrewnichols/opted.png)](https://david-dm.org/tandrewnichols/opted)

I'll be happy to merge any pull request that adds value and has passing tests. Tests are run with `grunt`.
Please see [the contribution guidelines](CONTRIBUTING.md).

@@ -5,6 +5,10 @@ module.exports = {

root: 'lib',
dir: 'coverage'
},
cmd: 'cover grunt mocha'
},
dir: 'coverage',
simple: {
cmd: 'cover',
args: ['grunt', 'mocha'],
rawArgs: ['--', '--color']
}
}
}
};

@@ -5,3 +5,3 @@ module.exports = {

ui: 'mocha-given',
require: 'coffee-script/register'
require: ['should', 'coffee-script/register']
},

@@ -8,0 +8,0 @@ test: {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet