1.2.9 • Published 2 years ago

make_fakes v1.2.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

make_fakes

License: MIT NPM Downloads Play with docs

Instructions:

npm install make_fakes
const make_fakes =  require('make_fakes')

If utilizing in html...:

<script src="./node_modules/make_fakes/index.js"></script>
<script> 
$(()=> { 
     const output =  make_fakes.method(parameter)
 })
</script>

Functions

createOne(object, object) ⇒ object

make_fakes.createOne(object)

Kind: global function
Date: 2022-03-02

ParamType
objectobject
objectobject

Example

const make_fakes = require("make_fakes")
let hourglass = {
  public: "boolean",
  seconds: "number",
  start: "past_date",
  description: "paragraph",
  edit: "date",
  end: "future_date",
  status: ["to do", "doing", "done"],
  title: "string",
  email: "email",
  created: "date"
}
let getOne = make_fakes.createOne(hourglass, { title: "hello" })
console.log("🚀 ~ file: index.js ~ line 17 ~ getOne", getOne)

createOneDirty(object, object) ⇒ object

Returns realistic fake dirty data boolean -> boolean to string or undefined number -> stringed number, float, undefined email -> string, number, undefined password -> " ", undefined, paragraph, past_date -> dateInput format, LL format, undefined future_date -> L format, l format, undefined date -> dateInput format, ll format phone -> future_date, boolean, undefined image -> string, " ", undefined

Kind: global function
Date: 2022-03-02

ParamType
objectobject
objectobject

Example

const make_fakes = require("make_fakes")
let hourglass = {
  public: "boolean",
  seconds: "number",
  start: "past_date",
  description: "paragraph",
  edit: "date",
  end: "future_date",
  status: ["to do", "doing", "done"],
  title: "string",
  email: "email",
  created: "date"
}
let getOneDirty = make_fakes.createOneDirty(hourglass, { title: "hello" })
console.log("🚀 ~ file: index.js ~ line 23 ~ getOneDirty", getOneDirty)

createMany(object, length, addId, things) ⇒ array

Kind: global function
Date: 2022-03-08
Author: zen-out

ParamTypeDefaultDescription
objectobject
lengthnumber1
addIdbooleanfalse
thingsobjectto add

Example

const make_fakes = require("make_fakes")
let hourglass = {
  public: "boolean",
  seconds: "number",
  start: "past_date",
  description: "paragraph",
  edit: "date",
  end: "future_date",
  status: ["to do", "doing", "done"],
  title: "string",
  email: "email",
  created: "date"
}
let getMany = make_fakes.createMany(hourglass, 2, true, { title: "hello" })
console.log("🚀 ~ file: index.js ~ line 17 ~ getOne", getMany)

createManyDirty(object, length, addId, things) ⇒ array

Kind: global function
Date: 2022-03-02

ParamTypeDefaultDescription
objectobject
lengthnumber1
addIdbooleanfalse
thingsobjectto add

Example

const make_fakes = require("make_fakes")
let hourglass = {
  public: "boolean",
  seconds: "number",
  start: "past_date",
  description: "paragraph",
  edit: "date",
  end: "future_date",
  status: ["to do", "doing", "done"],
  title: "string",
  email: "email",
  created: "date"
}
let getManyDirty = make_fakes.createManyDirty(hourglass, 2, true, { title: "hello" })
console.log("🚀 ~ file: index.js ~ line 23 ~ getOneDirty", getManyDirty)
1.1.1

2 years ago

1.0.19

2 years ago

1.1.0

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.2.2

2 years ago

1.1.3

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.2.9

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago