npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

us-baby-names-2

v1.0.2

Published

U.S. baby name data from 1880 to 2021 (inspired by `https://www.npmjs.com/package/us-baby-names`)

Downloads

1

Readme

U.S. Baby Names

U.S. baby name data from 1880 to 2021

⚠️ Warning: don't use these datasets client-side. The byYear dataset is 74 MB and the byName dataset is 67 MB.

Install

$ npm install us-baby-names-2 --save

Usage

Data by year

const { byYear } = require('us-baby-names-2')
console.log(byYear[1880])
// [ { name: 'Mary', sex: 'F', count: 7065 },
//  { name: 'Anna', sex: 'F', count: 2604 },
//  { name: 'Emma', sex: 'F', count: 2003 },
//  { name: 'Elizabeth', sex: 'F', count: 1939 },
//  ... ]

Data by name

const { byName } = require('us-baby-names-2')
console.log(byName['Mary'])
// [ { year: 1880, sex: 'F', count: 7065 },
//   { year: 1880, sex: 'M', count: 27 },
//   { year: 1881, sex: 'F', count: 6919 },
//   { year: 1881, sex: 'M', count: 29 },
//  ... ]

Both at once

const { byYear, byName } = require('us-baby-names-2')

Source

This dataset is from data.gov. From the Social Security Administration website:

All names are from Social Security card applications for births that occurred in the United States after 1879. All data are from a 100% sample of the Social Security Administration's records on Social Security card applications as of May 2022.

Limitations

  • Many people born before 1937 never applied for a Social Security card, so their names are not included in this data. For others who did apply, records may not show the place of birth, and again their names are not included in this data.
  • Names are restricted to cases where the year of birth, sex, State of birth (50 States and District of Columbia) are on record, and where the given name is at least 2 characters long.
  • Name data are not edited. For example, the sex associated with a name may be incorrect. Entries such as "Unknown" and "Baby" are not removed from the lists.
  • Different spellings of similar names are not combined. For example, the names Caitlin, Caitlyn, and Kaitlin are considered separate names.
  • A name must have at least 5 occurrences in a given year to be included in the data.

Raw Data

The raw csv data is available in the raw-data subdirectory.

Created by