Skip to content

Commit 975e5ac

Browse files
committed
style: Fixed line endings
1 parent 525c09f commit 975e5ac

File tree

5 files changed

+325
-325
lines changed

5 files changed

+325
-325
lines changed

.github/workflows/check-code.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: Check Code
2-
concurrency:
3-
group: ${{ github.workflow }}-${{ github.ref }}
4-
cancel-in-progress: true
5-
6-
on:
7-
push:
8-
branches:
9-
- '**'
10-
tags-ignore:
11-
- '**'
12-
13-
jobs:
14-
check-code:
15-
runs-on: ubuntu-latest
16-
name: Check Code
17-
18-
steps:
19-
- uses: actions/checkout@v3
20-
- uses: actions/setup-node@v3
21-
with:
22-
node-version: 16
23-
cache: 'npm'
24-
- run: npm ci
25-
- run: npm run check-code
26-
- run: npm run check-samples
1+
name: Check Code
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
5+
6+
on:
7+
push:
8+
branches:
9+
- '**'
10+
tags-ignore:
11+
- '**'
12+
13+
jobs:
14+
check-code:
15+
runs-on: ubuntu-latest
16+
name: Check Code
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-node@v3
21+
with:
22+
node-version: 16
23+
cache: 'npm'
24+
- run: npm ci
25+
- run: npm run check-code
26+
- run: npm run check-samples

.github/workflows/publish.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
name: Publish to NPM
2-
on:
3-
release:
4-
types: [published]
5-
6-
jobs:
7-
publish:
8-
environment: deploy
9-
runs-on: ubuntu-latest
10-
11-
name: Publish
12-
steps:
13-
- uses: actions/checkout@v3
14-
15-
- name: Setup node
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 16
19-
cache: 'npm'
20-
21-
- name: NPM Install
22-
run: npm ci
23-
24-
- name: Publish (NPM)
25-
run: npm publish --access public
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
environment: deploy
9+
runs-on: ubuntu-latest
10+
11+
name: Publish
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 16
19+
cache: 'npm'
20+
21+
- name: NPM Install
22+
run: npm ci
23+
24+
- name: Publish (NPM)
25+
run: npm publish --access public
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

LICENSE.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# MIT License
2-
3-
_Copyright (c) 2023 Sourcetoad, LLC_
4-
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:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
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 THE
21-
SOFTWARE.
1+
# MIT License
2+
3+
_Copyright (c) 2023 Sourcetoad, LLC_
4+
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:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
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 THE
21+
SOFTWARE.

README.md

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
# Add Badge
2-
3-
A set of node commands to add an overlay badge, inset to the non-transparent area. Meant for PNG app icons with equal
4-
insets.
5-
6-
| ![](https://github.com/sourcetoad/add-badge/raw/master/samples/output/ic_launcher-xxxhdpi.png) | ![](https://github.com/sourcetoad/add-badge/raw/master/samples/output/ic_launcher_round-xxxhdpi.png) |
7-
|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
8-
9-
## Installation
10-
11-
Using npm:
12-
13-
```shell
14-
npm install --save-dev @sourcetoad/add-badge
15-
```
16-
17-
Using yarn:
18-
19-
```shell
20-
yarn add --dev @sourcetoad/add-badge
21-
```
22-
23-
## Usage
24-
25-
Add a badge to a single image:
26-
27-
```shell
28-
npx add-badge <input-image> <output-image> <badge-text> [options]
29-
```
30-
31-
Add a badge to multiple images, modifying them in-place:
32-
33-
```shell
34-
npx add-badges <input-glob> <badge-text> [options]
35-
```
36-
37-
See [fast-glob](https://github.com/mrmlnc/fast-glob) for glob details.
38-
39-
### Options
40-
41-
| Option | Description | Default |
42-
|----------------------|------------------------------------------------------------|------------------------|
43-
| `--font-file` | Text font file | Roboto Black (Bundled) |
44-
| `--font-size` | Text size (pt, scaled up for larger images) | 22 |
45-
| `--text-color` | Text color (`transparent` for transparent) | #666666 |
46-
| `--background-color` | Badge background color | #ffffff |
47-
| `--shadow-color` | Badge shadow color | rgba(0,0,0,0.5) |
48-
| `--gravity` | Badge gravity (northwest, northeast, southwest, southeast) | southeast |
49-
| `--dry-run`/`-d` | Does not perform actions | |
1+
# Add Badge
2+
3+
A set of node commands to add an overlay badge, inset to the non-transparent area. Meant for PNG app icons with equal
4+
insets.
5+
6+
| ![](https://github.com/sourcetoad/add-badge/raw/master/samples/output/ic_launcher-xxxhdpi.png) | ![](https://github.com/sourcetoad/add-badge/raw/master/samples/output/ic_launcher_round-xxxhdpi.png) |
7+
|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
8+
9+
## Installation
10+
11+
Using npm:
12+
13+
```shell
14+
npm install --save-dev @sourcetoad/add-badge
15+
```
16+
17+
Using yarn:
18+
19+
```shell
20+
yarn add --dev @sourcetoad/add-badge
21+
```
22+
23+
## Usage
24+
25+
Add a badge to a single image:
26+
27+
```shell
28+
npx add-badge <input-image> <output-image> <badge-text> [options]
29+
```
30+
31+
Add a badge to multiple images, modifying them in-place:
32+
33+
```shell
34+
npx add-badges <input-glob> <badge-text> [options]
35+
```
36+
37+
See [fast-glob](https://github.com/mrmlnc/fast-glob) for glob details.
38+
39+
### Options
40+
41+
| Option | Description | Default |
42+
|----------------------|------------------------------------------------------------|------------------------|
43+
| `--font-file` | Text font file | Roboto Black (Bundled) |
44+
| `--font-size` | Text size (pt, scaled up for larger images) | 22 |
45+
| `--text-color` | Text color (`transparent` for transparent) | #666666 |
46+
| `--background-color` | Badge background color | #ffffff |
47+
| `--shadow-color` | Badge shadow color | rgba(0,0,0,0.5) |
48+
| `--gravity` | Badge gravity (northwest, northeast, southwest, southeast) | southeast |
49+
| `--dry-run`/`-d` | Does not perform actions | |

0 commit comments

Comments
 (0)