npm install @prospectwith/us-postal-code-to-state-name
# Or if you prefer using yarn
yarn add @prospectwith/us-postal-code-to-state-name
const { convertPostalCodeToStateName } = require("@prospectwith/us-postal-code-to-state-name")
convertPostalCodeToStateName("al") // Will output Alabama
const { data } = require("@prospectwith/us-postal-code-to-state-name")
console.log(data) // Will output the full data object with all postal codes, abbreviations and state names
You are more than welcome to contribute to this package. Just submit changes via pull request and I will review them before merging.
-
Fork it! 🤙
-
Create your feature branch:
git checkout -b my-new-feature
-
Commit your changes:
git commit -am "Add some feature"
-
Push to the branch:
git push origin my-new-feature
-
Submit a pull request 👍
This package is MIT licensed.