Skip to content

Commit

Permalink
feat: 🎸 add [XMLConvert]
Browse files Browse the repository at this point in the history
  • Loading branch information
touv committed May 27, 2021
1 parent 8c47110 commit 0040fce
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 414 deletions.
82 changes: 41 additions & 41 deletions docs/plugin-analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ npm install @ezs/analytics
- [reducing](#reducing)
- [aggregate](#aggregate)
- [slice](#slice)
- [upload](#upload)
- [distinct](#distinct)
- [exploding](#exploding)
- [graph](#graph)
- [upload](#upload)
- [pair](#pair)
- [merging](#merging)
- [summing](#summing)
Expand Down Expand Up @@ -434,46 +434,6 @@ Output:

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

### upload

save all objects in a temporary file
For non Buffer chunks, each object is transformed into a
string of characters in a raw way (no separator)

```json
[
{ year: 2000, dept: 54 },
{ year: 2001, dept: 55 },
{ year: 2003, dept: 54 },
]
```

Script:

```ini
[use]
plugin = analytics

[upload]
cleanupDelay = 5
```

Output:

```json
[
{ id: '/tmp/31234qdE33334dZE', value:3 },
]
```

#### Parameters

- `extension` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** set the file extension (optional, default `bin`)
- `prefix` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** set the file prefix (optional, default `upload`)
- `cleanupDelay` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** TTL in seconds, before cleanup the file (EZS_DELAY) (optional, default `3600`)

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

### distinct

Take `Object` object getting some fields with json path, and do ...
Expand Down Expand Up @@ -599,6 +559,46 @@ Output:

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

### upload

save all objects in a temporary file
For non Buffer chunks, each object is transformed into a
string of characters in a raw way (no separator)

```json
[
{ year: 2000, dept: 54 },
{ year: 2001, dept: 55 },
{ year: 2003, dept: 54 },
]
```

Script:

```ini
[use]
plugin = analytics

[upload]
cleanupDelay = 5
```

Output:

```json
[
{ id: '/tmp/31234qdE33334dZE', value:3 },
]
```

#### Parameters

- `extension` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** set the file extension (optional, default `bin`)
- `prefix` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** set the file prefix (optional, default `upload`)
- `cleanupDelay` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** TTL in seconds, before cleanup the file (EZS_DELAY) (optional, default `3600`)

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

### pair

Take `Object` object getting some fields with json path, and
Expand Down
82 changes: 41 additions & 41 deletions packages/analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ npm install @ezs/analytics
- [reducing](#reducing)
- [aggregate](#aggregate)
- [slice](#slice)
- [upload](#upload)
- [distinct](#distinct)
- [exploding](#exploding)
- [graph](#graph)
- [upload](#upload)
- [pair](#pair)
- [merging](#merging)
- [summing](#summing)
Expand Down Expand Up @@ -434,46 +434,6 @@ Output:

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

### upload

save all objects in a temporary file
For non Buffer chunks, each object is transformed into a
string of characters in a raw way (no separator)

```json
[
{ year: 2000, dept: 54 },
{ year: 2001, dept: 55 },
{ year: 2003, dept: 54 },
]
```

Script:

```ini
[use]
plugin = analytics

[upload]
cleanupDelay = 5
```

Output:

```json
[
{ id: '/tmp/31234qdE33334dZE', value:3 },
]
```

#### Parameters

- `extension` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** set the file extension (optional, default `bin`)
- `prefix` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** set the file prefix (optional, default `upload`)
- `cleanupDelay` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** TTL in seconds, before cleanup the file (EZS_DELAY) (optional, default `3600`)

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

### distinct

Take `Object` object getting some fields with json path, and do ...
Expand Down Expand Up @@ -599,6 +559,46 @@ Output:

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

### upload

save all objects in a temporary file
For non Buffer chunks, each object is transformed into a
string of characters in a raw way (no separator)

```json
[
{ year: 2000, dept: 54 },
{ year: 2001, dept: 55 },
{ year: 2003, dept: 54 },
]
```

Script:

```ini
[use]
plugin = analytics

[upload]
cleanupDelay = 5
```

Output:

```json
[
{ id: '/tmp/31234qdE33334dZE', value:3 },
]
```

#### Parameters

- `extension` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** set the file extension (optional, default `bin`)
- `prefix` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** set the file prefix (optional, default `upload`)
- `cleanupDelay` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** TTL in seconds, before cleanup the file (EZS_DELAY) (optional, default `3600`)

Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**

### pair

Take `Object` object getting some fields with json path, and
Expand Down
Loading

0 comments on commit 0040fce

Please sign in to comment.