Skip to content

Commit c1d97c3

Browse files
hafffekevva
authored andcommittedOct 18, 2017
Meta tweaks (#2)
1 parent 9ae868b commit c1d97c3

File tree

8 files changed

+50
-63
lines changed

8 files changed

+50
-63
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-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
2+
yarn.lock

‎.npmrc

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

‎.travis.yml

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

‎license

+5-17
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 <kevinmartensson@gmail.com> (github.com/kevva)
3+
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (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

+34-37
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
11
{
2-
"name": "parse-png",
3-
"version": "1.1.2",
4-
"description": "Parse a PNG",
5-
"license": "MIT",
6-
"repository": "kevva/parse-png",
7-
"author": {
8-
"name": "Kevin Martensson",
9-
"email": "kevinmartensson@gmail.com",
10-
"url": "github.com/kevva"
11-
},
12-
"engines": {
13-
"node": ">=4"
14-
},
15-
"scripts": {
16-
"test": "xo && ava"
17-
},
18-
"files": [
19-
"index.js"
20-
],
21-
"keywords": [
22-
"parse",
23-
"png",
24-
"promise"
25-
],
26-
"dependencies": {
27-
"pngjs": "^3.2.0"
28-
},
29-
"devDependencies": {
30-
"ava": "*",
31-
"file-type": "^4.3.0",
32-
"get-stream": "^3.0.0",
33-
"pify": "^2.3.0",
34-
"xo": "*"
35-
},
36-
"xo": {
37-
"esnext": true
38-
}
2+
"name": "parse-png",
3+
"version": "1.1.2",
4+
"description": "Parse a PNG",
5+
"license": "MIT",
6+
"repository": "kevva/parse-png",
7+
"author": {
8+
"name": "Kevin Martensson",
9+
"email": "kevinmartensson@gmail.com",
10+
"url": "github.com/kevva"
11+
},
12+
"engines": {
13+
"node": ">=4"
14+
},
15+
"scripts": {
16+
"test": "xo && ava"
17+
},
18+
"files": [
19+
"index.js"
20+
],
21+
"keywords": [
22+
"parse",
23+
"png",
24+
"promise"
25+
],
26+
"dependencies": {
27+
"pngjs": "^3.3.0"
28+
},
29+
"devDependencies": {
30+
"ava": "*",
31+
"file-type": "^7.2.0",
32+
"get-stream": "^3.0.0",
33+
"pify": "^3.0.0",
34+
"xo": "*"
35+
}
3936
}

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Install
77

88
```
9-
$ npm install --save parse-png
9+
$ npm install parse-png
1010
```
1111

1212

‎test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ import fileType from 'file-type';
33
import getStream from 'get-stream';
44
import pify from 'pify';
55
import test from 'ava';
6-
import fn from './';
6+
import m from '.';
77

88
test('parse', async t => {
9-
const data = await fn(await pify(fs.readFile)('./fixture.png'));
9+
const data = await m(await pify(fs.readFile)('./fixture.png'));
1010
t.is(data.width, 200);
1111
t.is(data.height, 133);
1212
t.is(data.depth, 8);
1313
t.true(Buffer.isBuffer(data.data));
1414
});
1515

1616
test('pack', async t => {
17-
const png = await fn(await pify(fs.readFile)('./fixture.png'));
17+
const png = await m(await pify(fs.readFile)('./fixture.png'));
1818
t.deepEqual(fileType(await getStream.buffer(png.pack())), {ext: 'png', mime: 'image/png'});
1919
});
2020

2121
test('parse interlaced png', async t => {
22-
const data = await fn(await pify(fs.readFile)('./fixture-interlaced.png'));
22+
const data = await m(await pify(fs.readFile)('./fixture-interlaced.png'));
2323
t.true(data.interlace);
2424
});
2525

2626
test('pack interlaced png', async t => {
27-
const png = await fn(await pify(fs.readFile)('./fixture-interlaced.png'));
27+
const png = await m(await pify(fs.readFile)('./fixture-interlaced.png'));
2828
t.deepEqual(fileType(await getStream.buffer(png.pack())), {ext: 'png', mime: 'image/png'});
2929
});

0 commit comments

Comments
 (0)
Please sign in to comment.