Skip to content

Commit a437535

Browse files
committedJul 23, 2017
Meta tweaks
1 parent f379a0e commit a437535

8 files changed

+52
-61
lines changed
 

‎.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +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

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
yarn.lock

‎.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

‎.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: node_js
22
node_js:
3+
- '8'
34
- '6'
45
- '4'

‎license

+4-16
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 <sindresorhus@gmail.com> (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

+40-40
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
{
2-
"name": "cli-truncate",
3-
"version": "1.0.0",
4-
"description": "Truncate a string to a specific width in the terminal",
5-
"license": "MIT",
6-
"repository": "sindresorhus/cli-truncate",
7-
"author": {
8-
"name": "Sindre Sorhus",
9-
"email": "sindresorhus@gmail.com",
10-
"url": "sindresorhus.com"
11-
},
12-
"engines": {
13-
"node": ">=4"
14-
},
15-
"scripts": {
16-
"test": "xo && ava"
17-
},
18-
"files": [
19-
"index.js"
20-
],
21-
"keywords": [
22-
"truncate",
23-
"ellipsis",
24-
"text",
25-
"limit",
26-
"slice",
27-
"cli",
28-
"terminal",
29-
"term",
30-
"shell",
31-
"width",
32-
"ansi"
33-
],
34-
"dependencies": {
35-
"slice-ansi": "^1.0.0",
36-
"string-width": "^2.0.0"
37-
},
38-
"devDependencies": {
39-
"ava": "*",
40-
"xo": "*"
41-
}
2+
"name": "cli-truncate",
3+
"version": "1.0.0",
4+
"description": "Truncate a string to a specific width in the terminal",
5+
"license": "MIT",
6+
"repository": "sindresorhus/cli-truncate",
7+
"author": {
8+
"name": "Sindre Sorhus",
9+
"email": "sindresorhus@gmail.com",
10+
"url": "sindresorhus.com"
11+
},
12+
"engines": {
13+
"node": ">=4"
14+
},
15+
"scripts": {
16+
"test": "xo && ava"
17+
},
18+
"files": [
19+
"index.js"
20+
],
21+
"keywords": [
22+
"truncate",
23+
"ellipsis",
24+
"text",
25+
"limit",
26+
"slice",
27+
"cli",
28+
"terminal",
29+
"term",
30+
"shell",
31+
"width",
32+
"ansi"
33+
],
34+
"dependencies": {
35+
"slice-ansi": "^1.0.0",
36+
"string-width": "^2.0.0"
37+
},
38+
"devDependencies": {
39+
"ava": "*",
40+
"xo": "*"
41+
}
4242
}

‎readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Gracefully handles [ANSI escapes](https://en.wikipedia.org/wiki/ANSI_escape_code
88
## Install
99

1010
```
11-
$ npm install --save cli-truncate
11+
$ npm install cli-truncate
1212
```
1313

1414

@@ -68,8 +68,8 @@ Type: `Object`
6868
##### position
6969

7070
Type: `string`<br>
71-
Default: `'end'`<br>
72-
Values: `'start'`, `'middle'`, `'end'`
71+
Default: `end`<br>
72+
Values: `start` `middle` `end`
7373

7474
Position to truncate the string.
7575

‎test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import m from './';
2+
import m from '.';
33

44
test(t => {
55
t.is(m('unicorn', 4), 'uni…');

0 commit comments

Comments
 (0)
Please sign in to comment.