@putout/operator-json 3.0.0 → 3.1.0
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 +12 -0
- package/lib/json.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,6 +37,18 @@ export const traverse = ({push}) => ({
|
|
|
37
37
|
});
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
### `__yaml`
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
import {operator} from 'putout';
|
|
44
|
+
|
|
45
|
+
const {__toml} = operator;
|
|
46
|
+
|
|
47
|
+
export const traverse = ({push}) => ({
|
|
48
|
+
[__toml]: push,
|
|
49
|
+
});
|
|
50
|
+
```
|
|
51
|
+
|
|
40
52
|
### `__ignore`
|
|
41
53
|
|
|
42
54
|
```js
|
package/lib/json.js
CHANGED
|
@@ -13,11 +13,13 @@ const maybeNewline = (a) => a.at(-1) === '\n' ? a : `${a}\n`;
|
|
|
13
13
|
|
|
14
14
|
export const __json_name = '__putout_processor_json';
|
|
15
15
|
export const __yaml_name = '__putout_processor_yaml';
|
|
16
|
+
export const __toml_name = '__putout_processor_toml';
|
|
16
17
|
export const __filesystem_name = '__putout_processor_filesystem';
|
|
17
18
|
export const __ignore_name = '__putout_processor_ignore';
|
|
18
19
|
|
|
19
20
|
export const __json = `${__json_name}(__object)`;
|
|
20
21
|
export const __yaml = `${__yaml_name}(__object)`;
|
|
22
|
+
export const __toml = `${__toml_name}(__object)`;
|
|
21
23
|
export const __filesystem = `${__filesystem_name}(__object)`;
|
|
22
24
|
export const __ignore = `${__ignore_name}(__array)`;
|
|
23
25
|
|
package/package.json
CHANGED