@shaynekasai/namegen

0.2.0 • Public • Published

Namegen

Build Status

This is a Node.js module that allows you to generate a random name using US census data and SQLite.

Usage

var namegen = require('namegen');
namegen.findRandomFemaleName(function(err, result) {
    console.log(result);
});

Available methods

findRandomSurname(callback)

findRandomMaleName(callback)

findRandomFemaleName(callback)

findRandomMaleForename(callback)

findRandomFemaleForename(callback)

callback gets called with two parameters: err, and result

Importer

namegen.db is already populated, but if you need to re-import, or you wanted to modify the importer, everything is located in the import folder including the census data.

import.sh - run this to execute the import. all tables will be dropped import.sql - the sql script that includes import commands based on the raw data in the same folder

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i @shaynekasai/namegen

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • shaynekasai