browse.js 0.0.1 → 0.0.2
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 +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
# Browse.js
|
|
2
2
|
## A lightweight yet versatile file browser written in vanilla JavaScript.
|
|
3
3
|
|
|
4
|
+
## Usage
|
|
5
|
+
|
|
6
|
+
Install:
|
|
7
|
+
|
|
8
|
+
```shell
|
|
9
|
+
npm i browse.js
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Import in your application:
|
|
13
|
+
|
|
14
|
+
```javascript
|
|
15
|
+
import {BrowseJS} from 'browse.js';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Alternatively, take advantage of a CDN:
|
|
19
|
+
```javascript
|
|
20
|
+
import {BrowseJS} from 'https://cdn.jsdelivr.net/npm/browse.js@latest';
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
4
25
|
Open `demo/index.html` in a browser (for example, using `python -m http.server 8000`) to run a demo.
|
|
5
26
|
|
|
6
27
|

|