pn (PhoneNumber), developped by Camille Oudot from Orange Labs, is a command line tool that allows the Shell programmer to use Google’s libphonenumber features, such as: get information from a phone number (country, number type, location), format a given phone number to several normalized formats, extract possible or valid phone numbers from a text.
libphonenumber is a very popular phone number manipulating library, yet it is hard to find a command line tool to use its functionalities. The new tool can be useful to people that manipulate data with the unix command line. It can be found on Orange OpenSource Github.
pn is dynamically linked to the Google’s library, which is published under the Apache v2.0 license.