Skip to content

Commit b4634af

Browse files
committed
📖 Update README
1 parent 4833a57 commit b4634af

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

readme.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ xpath-generator --help
4949

5050
-t, --type <"tree"/"xpaths"/"both"> Type of format output, can be 'tree' 'xpaths' or 'both' for outputdir, 'tree' 'xpaths' for console
5151

52+
-n, --nbattvalues <n> // Number of attribute values to output (see -a), default value: 10
53+
5254

5355
## Use xpath-generator as API :
5456

@@ -60,7 +62,7 @@ Load it :
6062

6163
```js
6264
const FromXML = require('xpath-generator').FromXML,
63-
FromFolder = require('xpath-generator').FromFolder;
65+
FromFolder = require('xpath-generator').FromFolder;
6466
```
6567

6668
Use it :
@@ -75,7 +77,7 @@ let xmls = new FromFolder().generateAll(program.folder).then(result=> {
7577
console.log(`${path} ${result[path].countElement}`);
7678
}
7779
});
78-
```
80+
```
7981

8082
Result will return an array of object like:
8183

@@ -107,4 +109,6 @@ Result will return an array of object like:
107109
```
108110

109111
#### Info
110-
There is a limit of maximum 10 values for each attributes.
112+
There is a default limit of maximum 10 values for each attributes.
113+
Change it using `--nbattvalues` (or `-n`) option.
114+

0 commit comments

Comments
 (0)