jexp 0.1.2 → 0.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.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,10 +4,12 @@ Command line application that allows parser and evaluator of json/yaml applying
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- Functions and arrow functions
|
|
8
7
|
- Constants, enums, variables, objects and arrays
|
|
9
8
|
- Arithmetic, assignment, comparison, Logical and bitwise operators
|
|
9
|
+
- Functions and arrow functions
|
|
10
|
+
- distinct and group by
|
|
10
11
|
- Environment variables
|
|
12
|
+
- json and yaml
|
|
11
13
|
|
|
12
14
|
## Global installation
|
|
13
15
|
|
|
@@ -515,8 +517,6 @@ Result:
|
|
|
515
517
|
[{"article":"Pear","qty":2},{"article":"Banana","qty":1},{"article":"White grape","qty":1},{"article":"Apple","qty":1},{"article":"Banana","qty":2},{"article":"Pear","qty":1}]
|
|
516
518
|
```
|
|
517
519
|
|
|
518
|
-
|
|
519
|
-
|
|
520
520
|
```sh
|
|
521
521
|
jexp '.details.map(p=>{article:p.article,count:count(1),total:sum(p.qty * p.unitPrice)})' ./data/orders.json
|
|
522
522
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jexp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Parser and evaluator of expressions by line of commands. The expressions correspond to the package js-expressions",
|
|
5
5
|
"author": "Flavio Lionel Rita <flaviolrita@hotmail.com>",
|
|
6
6
|
"license": "Apache-2.0 License",
|