File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1- ## Updatr Js simple Observer
1+ ## JsUpdatr Js simple Observer
22
33This is a very simple observer that can be used to bind an input value to an element anywhere on the DOM.
44
55
66``` html
77// Example Usage
88<script type =" module" >
9- import { watcher , observe } from ' https://cdn.jsdelivr.net/gh/hertonwork/updatr @v1/src/index.min.js'
9+ import { watcher , observe } from ' https://cdn.jsdelivr.net/gh/hertonwork/JsUpdatr @v1/src/index.min.js'
1010 // As an example, let's say we have an object coming from the backend and set as state
1111 observe (document .state )
1212 const modelExist = (model ) => document .state .hasOwnProperty (model);
@@ -45,7 +45,7 @@ This is a very simple observer that can be used to bind an input value to an ele
4545
4646### Support or Contact
4747
48- Check out our [ example page] ( https://hertonwork.github.io/updatr )
48+ Check out our [ example page] ( https://hertonwork.github.io/JsUpdatr )
4949
5050## License
5151
Original file line number Diff line number Diff line change 44< head >
55 < meta charset ="UTF-8 ">
66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7- < title > Updatr Example</ title >
8- < meta name ="description " content ="Updatr Js observer example ">
7+ < title > JsUpdatr Example</ title >
8+ < meta name ="description " content ="JsUpdatr observer example page ">
99 < link rel ="prefetch " href ="https://unpkg.com/open-props " />
1010 < link rel ="prefetch " href ="https://unpkg.com/open-props/normalize.min.css " />
1111 < link rel ="prefetch " href ="https://cdn.jsdelivr.net/gh/hertonwork/updatr@v1.0.0/src/index.min.js " />
3939 grid-gap : 2vh ;
4040 }
4141 </ style >
42- <!-- Updatr State -->
42+ <!-- JsUpdatr State -->
4343 < script type ="text/javascript ">
4444 document . state = {
4545 name : '' ,
5555
5656< body >
5757 < main >
58- < h2 > Updatr Observer</ h2 >
58+ < h2 > JsUpdatr Observer</ h2 >
5959 < section class ="full-section ">
6060 < article >
6161 < h3 > Data Models</ h3 >
@@ -113,7 +113,7 @@ <h3>Inline Views</h3>
113113 </ article >
114114 </ section >
115115 </ main >
116- <!-- Updatr Setup -->
116+ <!-- JsUpdatr Setup -->
117117 < script type ="module ">
118118 import { watcher , observe } from 'https://cdn.jsdelivr.net/gh/hertonwork/updatr@v1/src/index.min.js'
119119 observe ( document . state )
Original file line number Diff line number Diff line change 11{
2- "name" : " updatr " ,
2+ "name" : " js_updatr " ,
33 "version" : " 1.0.0" ,
4- "description" : " Light library to load data onto the DOM and have it synced with HTML elements" ,
4+ "description" : " minimalistic library to load data onto the DOM and have it synced with HTML elements" ,
55 "main" : " src/index.js" ,
66 "type" : " module" ,
77 "scripts" : {
88 "test" : " node test/index.js --coverage-report=lcov"
99 },
1010 "repository" : {
1111 "type" : " git" ,
12- "url" : " git+https://github.com/hertonwork/updatr "
12+ "url" : " git+https://github.com/hertonwork/JsUpdatr "
1313 },
1414 "keywords" : [
15- " updatr " ,
15+ " JsUpdatr " ,
1616 " observer" ,
1717 " watcher"
1818 ],
1919 "author" : " Herton Fontineli <d@ntas.cc> (http://fontineli.com/)" ,
2020 "license" : " MPL-2.0" ,
2121 "bugs" : {
22- "url" : " https://github.com/hertonwork/updatr /issues"
22+ "url" : " https://github.com/hertonwork/JsUpdatr /issues"
2323 },
24- "homepage" : " https://github.com/hertonwork/updatr #readme" ,
24+ "homepage" : " https://github.com/hertonwork/JsUpdatr #readme" ,
2525 "devDependencies" : {
2626 "tap" : " ^16.0.1"
2727 }
You can’t perform that action at this time.
0 commit comments