Skip to content

Commit 881d1c4

Browse files
committed
Meta tweaks
1 parent 01de9b7 commit 881d1c4

File tree

10 files changed

+52
-63
lines changed

10 files changed

+52
-63
lines changed

.editorconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ charset = utf-8
77
trim_trailing_whitespace = true
88
insert_final_newline = true
99

10-
[{package.json,*.yml}]
10+
[*.yml]
1111
indent_style = space
1212
indent_size = 2
13-
14-
[*.md]
15-
trim_trailing_whitespace = false

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* text=auto
2+
*.js text eol=lf

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
yarn.lock

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: node_js
22
node_js:
3-
- 'stable'
3+
- '8'
4+
- '6'
5+
- '4'
46
- '0.12'
57
- '0.10'

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ module.exports = function (str) {
1212
var bin = arr[0].split('/').pop();
1313
var arg = arr[1];
1414

15-
return (bin === 'env' ?
15+
return (
16+
bin === 'env' ?
1617
arg :
1718
bin + (arg ? ' ' + arg : '')
1819
);

license

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) Kevin Martensson <[email protected]> (github.com/kevva)
3+
Copyright (c) Kevin Mårtensson <[email protected]> (github.com/kevva)
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
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:
116

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
148

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
9+
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.

package.json

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
11
{
2-
"name": "shebang-command",
3-
"version": "1.2.0",
4-
"description": "Get the command from a shebang",
5-
"license": "MIT",
6-
"repository": "kevva/shebang-command",
7-
"author": {
8-
"name": "Kevin Martensson",
9-
"email": "[email protected]",
10-
"url": "github.com/kevva"
11-
},
12-
"engines": {
13-
"node": ">=0.10.0"
14-
},
15-
"scripts": {
16-
"test": "xo && ava"
17-
},
18-
"files": [
19-
"index.js"
20-
],
21-
"keywords": [
22-
"cmd",
23-
"command",
24-
"parse",
25-
"shebang"
26-
],
27-
"dependencies": {
28-
"shebang-regex": "^1.0.0"
29-
},
30-
"devDependencies": {
31-
"ava": "*",
32-
"xo": "*"
33-
},
34-
"xo": {
35-
"ignores": [
36-
"test.js"
37-
]
38-
}
2+
"name": "shebang-command",
3+
"version": "1.2.0",
4+
"description": "Get the command from a shebang",
5+
"license": "MIT",
6+
"repository": "kevva/shebang-command",
7+
"author": {
8+
"name": "Kevin Mårtensson",
9+
"email": "[email protected]",
10+
"url": "github.com/kevva"
11+
},
12+
"engines": {
13+
"node": ">=0.10.0"
14+
},
15+
"scripts": {
16+
"test": "xo && ava"
17+
},
18+
"files": [
19+
"index.js"
20+
],
21+
"keywords": [
22+
"cmd",
23+
"command",
24+
"parse",
25+
"shebang"
26+
],
27+
"dependencies": {
28+
"shebang-regex": "^1.0.0"
29+
},
30+
"devDependencies": {
31+
"ava": "^0.17.0",
32+
"xo": "^0.16.0"
33+
},
34+
"xo": {
35+
"esnext": false
36+
}
3937
}

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Install
77

88
```
9-
$ npm install --save shebang-command
9+
$ npm install shebang-command
1010
```
1111

1212

@@ -36,4 +36,4 @@ String containing a shebang.
3636

3737
## License
3838

39-
MIT © [Kevin Martensson](http://github.com/kevva)
39+
MIT © [Kevin Mårtensson](https://github.com/kevva)

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fn from './';
44
test(t => {
55
t.is(fn('#!/usr/bin/env node'), 'node');
66
t.is(fn('#!/bin/bash'), 'bash');
7-
t.is(fn('#!/bin/bash -ex'), 'bash -ex')
7+
t.is(fn('#!/bin/bash -ex'), 'bash -ex');
88
t.is(fn('#! /bin/bash'), 'bash');
99
t.is(fn('#! /bin/bash -ex'), 'bash -ex');
1010
t.is(fn('#!/sh'), 'sh');

0 commit comments

Comments
 (0)