@putout/engine-runner 14.1.0 β 14.1.1
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 +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,10 +15,10 @@ npm i @putout/engine-runner
|
|
|
15
15
|
|
|
16
16
|
There is a couple plugin types supported by π**Putout**:
|
|
17
17
|
|
|
18
|
-
- β
[**Replacer**](#replacer)
|
|
19
|
-
- β
[**Includer**](#includer)
|
|
20
|
-
- β
[**Traverser**](#traverser)
|
|
21
|
-
- β
[**Finder**](#finder)
|
|
18
|
+
- β
[**Replacer**](#replacer)
|
|
19
|
+
- β
[**Includer**](#includer)
|
|
20
|
+
- β
[**Traverser**](#traverser)
|
|
21
|
+
- β
[**Finder**](#finder)
|
|
22
22
|
|
|
23
23
|
All of them supports subset of **JavaScript** π¦[**PutoutScript**](https://github.com/coderaiser/putout/blob/master/docs/putout-script.md#-putoutscript) described in [`@putout/compare`](https://github.com/coderaiser/putout/tree/master/packages/compare#readme).
|
|
24
24
|
|
|
@@ -219,7 +219,7 @@ module.exports.find = (ast, {push, traverse}) => {
|
|
|
219
219
|
|
|
220
220
|
```js
|
|
221
221
|
const {runPlugins} = require('@putout/engine-runner');
|
|
222
|
-
const {parse} = require('@putout/
|
|
222
|
+
const {parse} = require('@putout/engine-parser');
|
|
223
223
|
|
|
224
224
|
const plugins = [{
|
|
225
225
|
rule: 'remove-debugger',
|
|
@@ -248,11 +248,11 @@ const places = runPlugins({
|
|
|
248
248
|
Stores is preferred way of keeping π**Putout** data, `traverse` init function called only once, and any other way
|
|
249
249
|
of handling variables will most likely will lead to bugs. There is a couple store types:
|
|
250
250
|
|
|
251
|
-
-
|
|
252
|
-
-
|
|
253
|
-
-
|
|
254
|
-
-
|
|
255
|
-
-
|
|
251
|
+
- β
[`listStore`](#liststore);
|
|
252
|
+
- β
[`pathStore`](#pathstore);
|
|
253
|
+
- β
[`store`](#store);
|
|
254
|
+
- β
[`upstore`](#upstore);
|
|
255
|
+
- β
[`uplist`](#uplist);
|
|
256
256
|
|
|
257
257
|
Let's talk about each of them.
|
|
258
258
|
|