1const diff = (a, b) => a.split('\n')
2 .map((line, i) => ({ line, match: line === b[i] }))
3 .filter(({ match }) => !match);
4
5function format(json: string, indent = 2) {
6 return JSON.stringify(JSON.parse(json), null, indent);
7}
8
9const words = (text: string) =>
10 text.trim().split(/\s+/).filter(Boolean);
11
12export { diff, format, words };
13
14// no tracking · no account · no ads
15// just tools that work
devkit
Des outils qui
font le job.
Pas de compte. Pas de pub. Pas de dark patterns.
Juste des utilitaires qui marchent.
Open source100% client-side3 outils