Skip to content

Commit ffc5bac

Browse files
Update readme
1 parent 16f16bb commit ffc5bac

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ This library provides a simple readable store that automatically subscribes to e
1919

2020
```svelte
2121
<script lang="ts">
22-
import { networkInformationStore as store } from 'svelte-network-information';
22+
import { networkInformationStore as store } from 'svelte-network-information';
2323
</script>
2424
2525
<ul>
26-
<li>State: {$store.state}</li>
27-
<li>connectivity: {$store.connectivity}</li>
28-
<li>downlink: {$store.downlink}</li>
29-
<li>downlinkMax: {$store.downlinkMax}</li>
30-
<li>effectiveType: {$store.effectiveType}</li>
31-
<li>rtt: {$store.rtt}</li>
32-
<li>saveData: {$store.saveData}</li>
33-
<li>type: {$store.type}</li>
26+
<li>State: {$store.state}</li>
27+
<li>connectivity: {$store.connectivity}</li>
28+
<li>downlink: {$store.downlink}</li>
29+
<li>downlinkMax: {$store.downlinkMax}</li>
30+
<li>effectiveType: {$store.effectiveType}</li>
31+
<li>rtt: {$store.rtt}</li>
32+
<li>saveData: {$store.saveData}</li>
33+
<li>type: {$store.type}</li>
3434
</ul>
3535
```
3636

@@ -40,10 +40,10 @@ To subscribe to changes for only a specific selection of values, simply create a
4040

4141
```svelte
4242
<script lang="ts">
43-
import { networkInformationStore } from 'svelte-network-information';
44-
import { derived } from 'svelte/store';
43+
import { networkInformationStore } from 'svelte-network-information';
44+
import { derived } from 'svelte/store';
4545
46-
const rtt = derived(networkInformationStore, ($store) => $store.rtt);
46+
const rtt = derived(networkInformationStore, ($store) => $store.rtt);
4747
</script>
4848
4949
rtt: {$rtt}

pkg/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ This library provides a simple readable store that automatically subscribes to e
1919

2020
```svelte
2121
<script lang="ts">
22-
import { networkInformationStore as store } from 'svelte-network-information';
22+
import { networkInformationStore as store } from 'svelte-network-information';
2323
</script>
2424
2525
<ul>
26-
<li>State: {$store.state}</li>
27-
<li>connectivity: {$store.connectivity}</li>
28-
<li>downlink: {$store.downlink}</li>
29-
<li>downlinkMax: {$store.downlinkMax}</li>
30-
<li>effectiveType: {$store.effectiveType}</li>
31-
<li>rtt: {$store.rtt}</li>
32-
<li>saveData: {$store.saveData}</li>
33-
<li>type: {$store.type}</li>
26+
<li>State: {$store.state}</li>
27+
<li>connectivity: {$store.connectivity}</li>
28+
<li>downlink: {$store.downlink}</li>
29+
<li>downlinkMax: {$store.downlinkMax}</li>
30+
<li>effectiveType: {$store.effectiveType}</li>
31+
<li>rtt: {$store.rtt}</li>
32+
<li>saveData: {$store.saveData}</li>
33+
<li>type: {$store.type}</li>
3434
</ul>
3535
```
3636

@@ -40,10 +40,10 @@ To subscribe to changes for only a specific selection of values, simply create a
4040

4141
```svelte
4242
<script lang="ts">
43-
import { networkInformationStore } from 'svelte-network-information';
44-
import { derived } from 'svelte/store';
43+
import { networkInformationStore } from 'svelte-network-information';
44+
import { derived } from 'svelte/store';
4545
46-
const rtt = derived(networkInformationStore, ($store) => $store.rtt);
46+
const rtt = derived(networkInformationStore, ($store) => $store.rtt);
4747
</script>
4848
4949
rtt: {$rtt}

0 commit comments

Comments
 (0)