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

pudding-datasource

v4.0.5

Published

Datasource for pudding.

Downloads

11

Readme

pudding-datasource

Build Status Code Climate Code Coverage npm Version

Datasource for pudding.

Installation

npm install pudding-datasource --save-dev

Usage

Generate English Data

'use strict'

const puddingDatasource = require('pudding-datasource')

let data = puddingDatasource('en', 300)

// ------------------------
// Age
// ------------------------
console.log(data[0].age) // "45"
console.log(data[1].age) // "25"
console.log(data[2].age) // "1"

// ------------------------
// Color
// ------------------------
console.log(data[0].color) // "Alice blue"
console.log(data[1].color) // "alizarin crimson"
console.log(data[2].color) // "almond"

// ------------------------
// Email
// ------------------------
console.log(data[0].email) // "[email protected]"
console.log(data[1].email) // "[email protected]"
console.log(data[2].email) // "[email protected]"

// ------------------------
// First Name
// ------------------------
console.log(data[0].firstName) // "Rebecca"
console.log(data[1].firstName) // "Sandra"
console.log(data[2].firstName) // "Diana"

// ------------------------
// Fish
// ------------------------
console.log(data[0].fish) // "African glass catfish"
console.log(data[1].fish) // "African lungfish"
console.log(data[2].fish) // "aholehole"

// ------------------------
// Flower
// ------------------------
console.log(data[0].flower) // "aster"
console.log(data[1].flower) // "campion"
console.log(data[2].flower) // "carnation"

// ------------------------
// Gender
// ------------------------
console.log(data[0].gender) // "Female"
console.log(data[1].gender) // "Female"
console.log(data[2].gender) // "Female"

// ------------------------
// Last Name
// ------------------------
console.log(data[0].lastName) // "Gilbert"
console.log(data[1].lastName) // "Gray"
console.log(data[2].lastName) // "Martin"

Generate Japanese Data

'use strict'

const puddingDatasource = require('pudding-datasource')

let data = puddingDatasource('ja', 300)

// ------------------------
// Address Kana
// ------------------------
console.log(data[0].addressKana) // "シズオカケンシズオカシアオイククズレノ"
console.log(data[1].addressKana) // "ヒョウゴケントヨオカシヒダカチョウヒオキ"
console.log(data[2].addressKana) // "ヒロシマケンヒロシマシナカクカナヤマチョウ"

// ------------------------
// Address
// ------------------------
console.log(data[0].address) // "静岡県静岡市葵区崩野3-10-2"
console.log(data[1].address) // "兵庫県豊岡市日高町日置4-13-4 サンハイツ日高町日置 806"
console.log(data[2].address) // "広島県広島市中区銀山町9-5-9"

// ------------------------
// Age
// ------------------------
console.log(data[0].age) // "45"
console.log(data[1].age) // "25"
console.log(data[2].age) // "1"

// ------------------------
// Animal
// ------------------------
console.log(data[0].animal) // "動物"
console.log(data[1].animal) // "あかいぬ"
console.log(data[2].animal) // "あかうお"

// ------------------------
// Bird
// ------------------------
console.log(data[0].bird) // "あいがも"
console.log(data[1].bird) // "あおくびあひる"
console.log(data[2].bird) // "あおげら"

// ------------------------
// Birthday
// ------------------------
console.log(data[0].birthday) // "Sun, 14 Jun 1970 23:36:13 GMT"
console.log(data[1].birthday) // "Mon, 26 Nov 1990 04:50:42 GMT"
console.log(data[2].birthday) // "Wed, 09 Jul 2014 01:43:00 GMT"

// ------------------------
// City
// ------------------------
console.log(data[0].city) // "アークレイリ"
console.log(data[1].city) // "青森市"
console.log(data[2].city) // "秋田市"

// ------------------------
// Color
// ------------------------
console.log(data[0].color) // "あい"
console.log(data[1].color) // "藍"
console.log(data[2].color) // "あいいろ"

// ------------------------
// Country
// ------------------------
console.log(data[0].country) // "アイスランド"
console.log(data[1].country) // "氷島"
console.log(data[2].country) // "氷州"

// ------------------------
// Fish
// ------------------------
console.log(data[0].fish) // "うお"
console.log(data[1].fish) // "さかな"
console.log(data[2].fish) // "魚"

// ------------------------
// Fruit
// ------------------------
console.log(data[0].fruit) // "くだもの"
console.log(data[1].fruit) // "果実"
console.log(data[2].fruit) // "あけび"

// ------------------------
// Geo
// ------------------------
console.log(data[0].geo) // "地形"
console.log(data[1].geo) // "暗礁"
console.log(data[2].geo) // "鞍部"

// ------------------------
// Instrument
// ------------------------
console.log(data[0].instrument) // "アコーディオン"
console.log(data[1].instrument) // "イングリッシュホルン"
console.log(data[2].instrument) // "ヴァイオリン"

// ------------------------
// Myouji Kana
// ------------------------
console.log(data[0].myoujiKana) // "さとう"
console.log(data[1].myoujiKana) // "すずき"
console.log(data[2].myoujiKana) // "たかはし"

// ------------------------
// Myouji
// ------------------------
console.log(data[0].myouji) // "佐藤"
console.log(data[1].myouji) // "鈴木"
console.log(data[2].myouji) // "高橋"

// ------------------------
// Namae Kana
// ------------------------
console.log(data[0].namaeKana) // "ヤスコ"
console.log(data[1].namaeKana) // "リエ"
console.log(data[2].namaeKana) // "フユキ"

// ------------------------
// Namae
// ------------------------
console.log(data[0].namae) // "八洲子"
console.log(data[1].namae) // "梨絵"
console.log(data[2].namae) // "冬樹"

// ------------------------
// Organ
// ------------------------
console.log(data[0].organ) // "解剖学"
console.log(data[1].organ) // "あご"
console.log(data[2].organ) // "あし"

// ------------------------
// Plant
// ------------------------
console.log(data[0].plant) // "植物"
console.log(data[1].plant) // "アーモンド"
console.log(data[2].plant) // "あい"

// ------------------------
// Star
// ------------------------
console.log(data[0].star) // "星座"
console.log(data[1].star) // "アンドロメダ座"
console.log(data[2].star) // "いっかくじゅう座"

// ------------------------
// Unit
// ------------------------
console.log(data[0].unit) // "単位"
console.log(data[1].unit) // "アール"
console.log(data[2].unit) // "アンペア"

License

This software is released under the MIT License.

Links