src/index.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 17
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
mnd 0
bc 0
fnc 2
dl 0
loc 17
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ remarkTelegraphPlugin 0 9 2
1
import Tags from './Tags';
2
import Visitor from './Visitor';
3
4
export default function remarkTelegraphPlugin() {
5
    const visitor = new Visitor(Tags);
6
7
    function Compiler(tree) {
8
        return JSON.stringify(visitor.visit(tree));
9
    }
10
11
    Object.assign(this, { Compiler });
12
}
13
14
export {
15
    Visitor,
16
    Tags
17
};
18