tiny-spark 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +7 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -9,6 +9,7 @@ An elegant, reactive and responsive sparkline chart solution without dependency.
9
9
 
10
10
  <img width="500" alt="image" src="https://github.com/user-attachments/assets/d312a234-8e09-44a2-89fd-5ae85a6cdbec" />
11
11
 
12
+ [DEMO](https://tiny-spark.graphieros.com/)
12
13
 
13
14
  ## Installation
14
15
 
@@ -18,6 +19,12 @@ npm i tiny-spark
18
19
 
19
20
  ## Usage
20
21
 
22
+ Import the file in your project (or use the cdn):
23
+
24
+ ```js
25
+ import "tiny-spark/dist/tiny-spark.umd";
26
+ ```
27
+
21
28
  Just set up a div with a "tiny-spark" class, with a few data attributes to configure the chart.
22
29
 
23
30
  ```html
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tiny-spark",
3
3
  "private": false,
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "type": "module",
6
6
  "description": "An elegant, reactive and responsive sparkline chart solution without dependency.",
7
7
  "author": "Alec Lloyd Probert",
@@ -18,6 +18,7 @@
18
18
  "type": "git",
19
19
  "url": "git+https://github.com/graphieros/tiny-spark.git"
20
20
  },
21
+ "homepage": "https://tiny-spark.graphieros.com/",
21
22
  "scripts": {
22
23
  "dev": "vite",
23
24
  "build": "tsc && vite build"