@krisenstab/dither-dither 2.1.0 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# dither-dither
|
|
2
2
|
|
|
3
|
-
[demo](https://
|
|
3
|
+
[demo](https://thometnanni.github.io/dither-dither/)
|
|
4
4
|
|
|
5
|
-
`npm i dither-dither`
|
|
5
|
+
`npm i @krisenstab/dither-dither`
|
|
6
6
|
|
|
7
|
-
`import 'dither-dither'`
|
|
7
|
+
`import '@krisenstab/dither-dither'`
|
|
8
8
|
|
|
9
9
|
`<dither-dither src="…"></dither-dither>`
|
|
10
10
|
|
|
@@ -15,27 +15,27 @@ This is a web component for monochrome dithering. It works on images and videos.
|
|
|
15
15
|
## Why?
|
|
16
16
|
|
|
17
17
|
- looks nice
|
|
18
|
-
- small media files – in most cases you'll get away with using [images](https://github.com/
|
|
18
|
+
- small media files – in most cases you'll get away with using [images](https://github.com/thometnanni/dither-dither/blob/main/public/hermannstrasse.jpg) and [videos](https://github.com/thometnanni/dither-dither/blob/main/public/hermannstrasse.mp4) of atrocious quality
|
|
19
19
|
|
|
20
20
|
## How?
|
|
21
21
|
|
|
22
22
|
install the package through npm
|
|
23
23
|
|
|
24
24
|
```sh
|
|
25
|
-
npm i dither-dither
|
|
25
|
+
npm i @krisenstab/dither-dither
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
import in javascript…
|
|
29
29
|
|
|
30
30
|
```js
|
|
31
|
-
import "dither-dither";
|
|
31
|
+
import "@krisenstab/dither-dither";
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
…or directly in your html file
|
|
35
35
|
|
|
36
36
|
```html
|
|
37
37
|
<script type="module">
|
|
38
|
-
import "dither-dither";
|
|
38
|
+
import "@krisenstab/dither-dither";
|
|
39
39
|
</script>
|
|
40
40
|
```
|
|
41
41
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krisenstab/dither-dither",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/
|
|
10
|
+
"url": "https://github.com/thometnanni/dither-dither"
|
|
11
11
|
},
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|