
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
@types/zipcodes
Advanced tools
TypeScript definitions for zipcodes
npm install --save @types/zipcodes
This package contains type definitions for zipcodes (https://github.com/davglass/zipcodes#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/zipcodes.
export as namespace ZipCodes;
export interface ZipCode {
zip: string;
latitude: number;
longitude: number;
city: string;
state: string;
country: string;
}
export const codes: Record<string, ZipCode>;
export const states: {
full: Record<string, string>;
abbr: Record<string, string>;
normalize: (state: string) => string;
};
export function lookup(zip: string | number): ZipCode | undefined;
export function lookupByName(city: string, state: string): ZipCode[];
export function lookupByState(state: string): ZipCode[];
export function distance(zipA: string | number, zipB: string | number): number | null;
export function radius(zip: string | number, miles: number, full?: boolean): string[] | ZipCode[];
export function toMiles(kilos: number): number;
export function toKilometers(miles: number): number;
export function lookupByCoords(lat: number, lon: number): ZipCode | null;
export function random(): ZipCode;
These definitions were written by Brayden Lopez, Dobes Vandermeer, and Piotr Błażejewicz.
FAQs
TypeScript definitions for zipcodes
The npm package @types/zipcodes receives a total of 16,457 weekly downloads. As such, @types/zipcodes popularity was classified as popular.
We found that @types/zipcodes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.