This is a dump of all Singapore postal codes retrieved from Onemap.sg. The download script and the data dump are attached.
If you re-run the script and notice changes to the data dump, congratulations! You have spotted a change in the postal codes! Submit a pull request and I'll update the dump.
Note: Use of the data is governed by the Open Data Licence