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.
- npmcommand (Can be installed with Node.js)
- Run npm installto install required dependencies.
- Set hostnameandportinpackage.json(localhostand3000by default).
- Start authentication server with npm run authorise.
- Navigate to http://hostname:portin a web browser and complete the OAuth sign-in process.
- Set default_codeinpackage.json(GBby default).
- Go to http://localhost:3000in a browser to authorise.
- Now run npm startto 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 --silentwill run every 10 minutes).
Feel free to contact me or alternatively open an issue.
Pull requests are also welcome. 😊