Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including zipcode with all npm packages installed. Try it out:

var zipcode = require("zipcode")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

zipcode v0.1.1

Easily lookup city and state for a US zipcode


Node module to easily lookup city and state for a US zipcode

Install using npm:

npm install zipcode
var zipcode = require('zipcode');

// returns data in [city, state] format
zipcode.lookup('94122'); // ['SAN FRANCISCO','CA']



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free