apemanseed
Dynamic data generator.
Last updated 2 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apemanseed 
SYNC missed versions from official npm registry.

apemanseed

Build Status Code Climate Code Coverage npm Version JS Standard

Dynamic data generator.

Installation

$ npm install apemanseed --save

Usage

'use strict'

const apemanseed = require('apemanseed')

let seed = apemanseed('ja', {
  vars: {
    foo: 'bar'
  }
})

let users = seed.explode({
  username: '#{animal}'
}, 100)

console.log(users)

Context

Variables available inside expression.

Values with ja lang

Name Example
addressKana "トウキョウトエドガワクヒガシシノザキマチ", "ギフケンギフシヒノデマチ", "キョウトフソウラクグンカモチョウナガモダイ"
address "東京都江戸川区東篠崎町2-8-6", "岐阜県岐阜市日ノ出町9-15-3", "京都府相楽郡加茂町南加茂台1099"
age "16", "4", "77"
animal "おうま", "戌", "おうし"
bird "ひたき", "ひくいどり", "ひくいな"
birthday "Sat, 03 Jul 1999 00:13:11 GMT", "Thu, 29 Mar 2012 21:49:32 GMT", "Fri, 10 Feb 1939 05:59:47 GMT"
city "新京", "上海", "シンガポール"
color "たまむしいろ", "多色", "たまむし"
country "白耳義", "ペルー", "ベルギー"
fish "とらふぐ", "トラウト", "ドラゴンフィッシュ"
fruit "日向夏", "パプリカ", "ピーマン"
geo "かわぐち", "かわ", "河"
instrument "ホルン", "ベース", "ハーモニカ"
myoujiKana "やました", "いけだ", "はしもと"
myouji "山下", "池田", "橋本"
namaeKana "ノゾミ", "マキコ", "レイイチ"
namae "望", "真紀子", "玲一"
organ "は", "乳嘴", "のど"
plant "しろふじ", "しらゆり", "しろぎく"
star "双子座", "はと座", "ふうちょう座"
unit "シーベルト", "石", "さか"

Values with en lang

Name Example
age "64", "26", "22"
color "cinnabar", "cinereous", "cinnamon"
email "jgonzales67@tinyurl.com", "mknight66@etsy.com", "prussell68@dion.ne.jp"
firstName "Johnny", "Mildred", "Paul"
fish "basking shark", "barreleye", "bass"
flower "amaryllis", "African Lily", "anemone"
gender "Male", "Female", "Male"
lastName "Gonzales", "Knight", "Russell"

Functions

  • moment()
  • numcal()
  • stringcase()
  • randomval()
  • toRomaji()
  • toHiragana()
  • toKatakana()
  • randomBool()
  • randomDate()
  • randomHash()
  • randomInt()
  • random()
  • camelcase()
  • capitalcase()
  • constcase()
  • decapitalcase()
  • enumcase()
  • lowercase()
  • pascalcase()
  • pathcase()
  • sentencecase()
  • snakecase()
  • spacecase()
  • spinalcase()
  • titlecase()
  • trimcase()
  • uppercase()
  • ave()
  • max()
  • min()
  • sum()

License

This software is released under the MIT License.

Links

Current Tags

  • 2.1.6                                ...           latest (2 years ago)

15 Versions

  • 2.1.6                                ...           2 years ago
  • 2.1.5                                ...           2 years ago
  • 2.1.4                                ...           2 years ago
  • 2.1.3                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 0
Last Month 16
Dependencies (2)
Dev Dependencies (10)

Copyright 2014 - 2017 © taobao.org |