Skip to content

Commit df6b939

Browse files
committed
Meta tweaks
1 parent 15717af commit df6b939

File tree

4 files changed

+11
-20
lines changed

4 files changed

+11
-20
lines changed

license

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

33
Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"executable"
3535
],
3636
"dependencies": {
37-
"path-key": "^2.0.0"
37+
"path-key": "^3.0.0"
3838
},
3939
"devDependencies": {
4040
"ava": "^1.3.1",

readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In [npm run scripts](https://docs.npmjs.com/cli/run-script) you can execute loca
88
## Install
99

1010
```
11-
$ npm install --save npm-run-path
11+
$ npm install npm-run-path
1212
```
1313

1414

@@ -56,10 +56,12 @@ Set it to an empty string to exclude the default PATH.
5656

5757
### npmRunPath.env([options])
5858

59-
The augmented [`process.env`](https://nodejs.org/api/process.html#process_process_env) object.
59+
Returns the augmented [`process.env`](https://nodejs.org/api/process.html#process_process_env) object.
6060

6161
#### options
6262

63+
Type: `Object`
64+
6365
##### cwd
6466

6567
Type: `string`<br>

test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import path from 'path';
22
import test from 'ava';
33
import npmRunPath from '.';
44

5-
test('npmRunPath', t => {
5+
test('main', t => {
66
t.is(
77
npmRunPath({path: ''}).split(path.delimiter)[0],
88
path.join(__dirname, 'node_modules/.bin')
99
);
10+
1011
t.is(
1112
npmRunPath.env({env: {PATH: 'foo'}}).PATH.split(path.delimiter)[0],
1213
path.join(__dirname, 'node_modules/.bin')

0 commit comments

Comments
 (0)