find-typos 0.1.8

Find typos in your project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const pjson = require('./package.json');
const fs = require('fs');

const run = () => {
    const bin = pjson.bin || {};
    
    bin['find-typos'] = 'start.js';
    pjson.bin = bin;

    fs.writeFile('./package.json', JSON.stringify(pjson, null, 2), (err) => {
        if (err) throw err;
        console.log('package.json has been updated!');
    });
}

run();