Skip to content

Commit 141c75a

Browse files
committed
update readme
1 parent 72c741e commit 141c75a

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# vue-script-parser
22

3-
This package can be used to parse vue script section.
3+
![visitors](https://visitor-badge.laobi.icu/badge?page_id=kunaltaitkar.vue-script-parser)
44

5+
This package can be used to parse vue script section and it provides an interface to add, update and delete entities of different life cycles hooks of VueJS.
56

6-
## Installation
77

8+
## Installation
89
```
910
npm install vue-script-ast-parser
1011
```
@@ -24,20 +25,23 @@ export default {
2425
methods: {
2526
parseCode() {
2627
let code = `
27-
import Vue from 'vue
28-
import myComponent from 'myComponent'
29-
export default {
30-
data() {
31-
return {
32-
name: 'Kunal'
33-
}
34-
},
35-
methods: {
36-
test() {
37-
console.log('this is test method')
38-
},
39-
},
40-
}`
28+
import Vue from 'vue
29+
import myComponent from 'myComponent'
30+
export default {
31+
data() {
32+
return {
33+
name: 'Kunal'
34+
}
35+
},
36+
mounted() {
37+
console.log('this is mounted')
38+
}
39+
methods: {
40+
test(args1,args2) {
41+
console.log('this is test method')
42+
},
43+
},
44+
}`
4145
let instance = new VueScriptParser(code)
4246
console.log(instance)
4347
}

0 commit comments

Comments
 (0)