xml-twig 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -339,6 +339,8 @@ For methods which return a single **Twig** element (e.g. `elt.next("book")`) the
339
339
 
340
340
  `.isLastChild` - **boolean**: `true` if the element is the last child in the parent
341
341
 
342
+ `.index` - **integer**: The postion (starting at 0) of the element within the parent. The root element returns always 0
343
+
342
344
  `.name` - **string**: Name of the element/tag
343
345
 
344
346
  `.tag` - **string**: Synonym for `name`
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "name": "xml-twig",
7
7
  "description": "Node module for processing huge XML documents in tree mode",
8
- "version": "1.1.2",
8
+ "version": "1.1.3",
9
9
  "main": "twig.js",
10
10
  "directories": {
11
11
  "doc": "doc"