__recipes__/js-api/index.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 13
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
mnd 0
bc 0
fnc 2
dl 0
loc 13
rs 10
bpm 0
cpm 1
noi 1
c 0
b 0
f 0
1
const dts = require('postcss-d-ts')
2
const postcss = require('postcss')
3
const fs = require('fs')
4
5
fs.readFile('index.css', (_, css) => {
6
  postcss([
7
    dts(),
8
  ])
9
  .process(css, { from: 'index.css', to: 'out.css' })
10
  .then(result => {
11
    console.log(result.css);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
12
  })
13
})
14