How to use
- Checking code string is different than expected (will return array with yourcode lines if they are different than expectedcode lines).
import codeDiff from 'diff-code'
const difference = codeDiff(yourcode, expectedcode)
import codeDiff from 'diff-code'
const difference = codeDiff(yourcode, expectedcode)
npm i code-diff
2
0.1.3
MIT
2.6 kB
4