Skip to content

Commit 4db304a

Browse files
fix exports in package.json
1 parent 767f6eb commit 4db304a

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Below are some of the most common ways to include vkbd.
4242
**CDN Link**
4343

4444
```html
45-
<script src="https://cdn.jsdelivr.net/npm/printfy@1.0.0/lib/vkbd.min.js"></script>
45+
<script src="https://cdn.jsdelivr.net/npm/vkbd@1.0.0/lib/vkbd.min.js"></script>
4646
```
4747

4848
You can add the script manually to your project:
@@ -54,7 +54,7 @@ You can add the script manually to your project:
5454
Webpack / Browserify / Babel
5555
----------------------------
5656

57-
There are several ways to use [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Babel](https://babeljs.io/). For more information on using these tools, please refer to the corresponding project's documentation. In the script, including printfy will usually look like this:
57+
There are several ways to use [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Babel](https://babeljs.io/). For more information on using these tools, please refer to the corresponding project's documentation. In the script, including vkbd will usually look like this:
5858

5959
```js
6060
import vkbd from 'vkbd';
@@ -99,6 +99,8 @@ function App() {
9999
export default App;
100100
```
101101

102+
### Output
103+
102104
![Output1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hr2aw0d4n9ex14nh85k2.gif)
103105

104106
### Usage in Browser
@@ -110,8 +112,8 @@ export default App;
110112
<meta charset="UTF-8">
111113
<meta name="viewport" content="width=device-width, initial-scale=1.0">
112114
<title>Virtual Keyboard UI</title>
113-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/printfy@1.0.0/lib/vkbd.min.css">
114-
<script src="https://cdn.jsdelivr.net/npm/printfy@1.0.0/lib/vkbd.min.js"></script>
115+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vkbd@1.0.0/lib/vkbd.min.css">
116+
<script src="https://cdn.jsdelivr.net/npm/vkbd@1.0.0/lib/vkbd.min.js"></script>
115117

116118
<!-- Keboard UI Configuration -->
117119
<script>
@@ -142,6 +144,8 @@ export default App;
142144
</html>
143145
```
144146

147+
### Output
148+
145149
![Output2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ug19xle84vdeuw0jke8g.gif)
146150

147151
Configuration Options

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"lib": "lib"
88
},
99
"exports": {
10+
".": "./lib/vkbd.js",
1011
"./vkbd.css": "./lib/vkbd.css"
1112
},
1213
"scripts": {

0 commit comments

Comments
 (0)