Automatically adds a default area code to phone numbers in Google Contacts. This is particularly useful if contact numbers are being added from several sources to ensure consistency.
- Numbers which already have your local area code (or none at all) will be displayed in your local form.
- Numbers which have an International area code (which is not yours) will keep this.
npm
command (Can be installed with Node.js)
- Run
npm install
to install required dependencies. - Set
hostname
andport
inpackage.json
(localhost
and3000
by default). - Start authentication server with
npm run authorise
. - Navigate to
http://hostname:port
in a web browser and complete the OAuth sign-in process. - Set
default_code
inpackage.json
(GB
by default). - Go to
http://localhost:3000
in a browser to authorise. - Now run
npm start
to update contacts' area code (no need to re-authorise each time). - (Optional) Setup a cron job or similar to run periodically (e.g.
*/10 * * * * npm start --silent
will run every 10 minutes).
Feel free to contact me or alternatively open an issue.
Pull requests are also welcome. 😊