[Pkg-javascript-commits] [node-dargs] 05/54: tweaks
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:41:01 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-dargs.
commit 6e83f004b69785501732405030b9461924c18df7
Author: Sindre Sorhus <sindresorhus at gmail.com>
Date: Wed Aug 13 18:54:30 2014 +0200
tweaks
---
.editorconfig | 5 ++++-
.gitignore | 1 +
.jshintrc | 12 ++----------
.travis.yml | 1 -
dargs.js => index.js | 1 -
license | 21 +++++++++++++++++++++
package.json | 22 ++++++----------------
readme.md | 10 +++++-----
test.js | 4 +---
9 files changed, 40 insertions(+), 37 deletions(-)
diff --git a/.editorconfig b/.editorconfig
index b0d7fd9..86c8f59 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,4 +1,3 @@
-# editorconfig.org
root = true
[*]
@@ -8,5 +7,9 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
+[package.json]
+indent_style = space
+indent_size = 2
+
[*.md]
trim_trailing_whitespace = false
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c3629e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules
diff --git a/.jshintrc b/.jshintrc
index 19efbf5..804f8af 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -1,21 +1,13 @@
{
"node": true,
- "es5": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
- "eqeqeq": true,
"immed": true,
- "indent": 4,
- "latedef": true,
"newcap": true,
"noarg": true,
- "quotmark": "single",
- "regexp": true,
"undef": true,
- "unused": true,
- "strict": true,
- "trailing": true,
- "smarttabs": true
+ "unused": "vars",
+ "strict": true
}
diff --git a/.travis.yml b/.travis.yml
index 2cdacaf..244b7e8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,3 @@
language: node_js
node_js:
- '0.10'
- - '0.8'
diff --git a/dargs.js b/index.js
similarity index 99%
rename from dargs.js
rename to index.js
index 507c9e4..b937327 100644
--- a/dargs.js
+++ b/index.js
@@ -1,5 +1,4 @@
'use strict';
-
module.exports = function (options, excludes) {
var args = [];
diff --git a/license b/license
new file mode 100644
index 0000000..654d0bf
--- /dev/null
+++ b/license
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Sindre Sorhus <sindresorhus at gmail.com> (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/package.json b/package.json
index 69be38e..9e0f221 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,8 @@
{
"name": "dargs",
"version": "0.1.0",
- "description": "Converts an object of options into an array of command-line arguments. Useful when calling command-line tools.",
+ "description": "Converts an object of options into an array of command-line arguments",
+ "repository": "sindresorhus/dargs",
"keywords": [
"options",
"arguments",
@@ -9,33 +10,22 @@
"flags",
"cli"
],
- "homepage": "https://github.com/sindresorhus/dargs",
- "bugs": "https://github.com/sindresorhus/dargs/issues",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus at gmail.com",
"url": "http://sindresorhus.com"
},
- "main": "dargs.js",
- "repository": {
- "type": "git",
- "url": "git://github.com/sindresorhus/dargs.git"
- },
"scripts": {
"test": "mocha"
},
"devDependencies": {
- "mocha": "~1.9.0"
+ "mocha": "*"
},
"engines": {
- "node": ">=0.8.0"
+ "node": ">=0.10.0"
},
- "licenses": [
- {
- "type": "MIT"
- }
- ],
+ "license": "MIT",
"files": [
- "dargs.js"
+ "index.js"
]
}
diff --git a/readme.md b/readme.md
index be35523..993035a 100644
--- a/readme.md
+++ b/readme.md
@@ -2,12 +2,12 @@
> Converts an object of options into an array of command-line arguments
-Basically the inverse of an argument parser like nopt or minimist.
+Basically the inverse of an argument parser like nopt or minimist. Useful when calling command-line tools.
## Install
-```bash
+```sh
$ npm install --save dargs
```
@@ -48,17 +48,17 @@ console.log(dargs(options, excludes));
#### options
-Type: `Object`
+Type: `object`
Options to convert to command-line arguments.
#### excludes
-Type: `Array`
+Type: `array`
Keys to exclude.
## License
-[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)
+MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/test.js b/test.js
index 5cb423c..00d33c3 100644
--- a/test.js
+++ b/test.js
@@ -1,8 +1,6 @@
-/*global describe, it */
'use strict';
var assert = require('assert');
-var dargs = require('./dargs');
-
+var dargs = require('./');
var fixture = {
a: 'foo',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-dargs.git
More information about the Pkg-javascript-commits
mailing list