Skip to content

iibe/vscode-faker-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faker.js for Visual Studio Code

logo128x128.png

Generate massive amounts of fake (but realistic) data for testing and development with Faker.js.

Usage

  1. Type CTRL+SHIFT+P for Windows or CMD+SHIFT+P for MacOS to launch command palette;
  2. Type Faker.js: <command> and press Enter to run Faker.js method.

usage.gif

Installation

  1. Type CTRL+SHIFT+P for Windows or CMD+SHIFT+P for MacOS to launch command palette;
  2. Type Extensions: Install Extensions and press Enter to open marketplace (a.k.a extension view);
  3. Search Faker.js extension and install it.

install.gif

Locale

  1. Type CTRL+SHIFT+P for Windows or CMD+SHIFT+P for MacOS to launch command palette;
  2. Type Preferences: Open User Settings (JSON) and press Enter to open setting.json file;
  3. Pick locale:
{
  "faker-js.locale": "en"
}

Syntax

Specifies a syntax of fake data. If set to *, the serialization changes dynamically depending on a programming language. Otherwise (if set to a particular language), a fixed serialization will be used for all languages. If no serialization class was found, then it uses JavaScript syntax for everything.

{
  "faker-js.syntax": "*"
}

Language-specific settings

Following options provide additional control over how to insert data. This can be useful if you use a particular language version or formatter options. For example, in some versions of ECMAScript, big integer 123n (as literal) is not allowed, but BigInt(123) (as object wrapper) is permitted.

{
  "faker-js.go.bigint.insertMode": "...",
  "faker-js.go.string.quotationMark": "...",
  "faker-js.go.string.insertMode": "...",
  "faker-js.go.array.insertMode": "...",
  "faker-js.javascript.bigint.insertMode": "...",
  "faker-js.javascript.string.quotationMark": "...",
  "faker-js.javascript.string.insertMode": "...",
  "faker-js.php.null.insertMode": "...",
  "faker-js.php.boolean.insertMode": "...",
  "faker-js.php.bigint.insertMode": "...",
  "faker-js.php.string.quotationMark": "...",
  "faker-js.php.string.insertMode": "...",
  "faker-js.php.array.insertMode": "...",
  "faker-js.python.bigint.insertMode": "...",
  "faker-js.python.string.quotationMark": "...",
  "faker-js.python.string.insertMode": "...",
  "faker-js.ruby.bigint.insertMode": "...",
  "faker-js.ruby.string.quotationMark": "...",
  "faker-js.ruby.string.insertMode": "..."
}

Faker.js API

  1. airline.aircraftType
  2. airline.airline
  3. airline.airplane
  4. airline.airport
  5. airline.flightNumber
  6. airline.recordLocator
  7. airline.seat
  8. animal.bear
  9. animal.bird
  10. animal.cat
  11. animal.cetacean
  12. animal.cow
  13. animal.crocodilia
  14. animal.dog
  15. animal.fish
  16. animal.horse
  17. animal.insect
  18. animal.lion
  19. animal.petName
  20. animal.rabbit
  21. animal.rodent
  22. animal.snake
  23. animal.type
  24. book.author
  25. book.format
  26. book.genre
  27. book.publisher
  28. book.series
  29. book.title
  30. color.cmyk
  31. color.colorByCSSColorSpace
  32. color.cssSupportedFunction
  33. color.cssSupportedSpace
  34. color.hsl
  35. color.human
  36. color.hwb
  37. color.lab
  38. color.lch
  39. color.rgb
  40. color.space
  41. commerce.department
  42. commerce.isbn
  43. commerce.price
  44. commerce.product
  45. commerce.productAdjective
  46. commerce.productDescription
  47. commerce.productMaterial
  48. commerce.productName
  49. company.buzzAdjective
  50. company.buzzNoun
  51. company.buzzPhrase
  52. company.buzzVerb
  53. company.catchPhrase
  54. company.catchPhraseAdjective
  55. company.catchPhraseDescriptor
  56. company.catchPhraseNoun
  57. company.name
  58. database.collation
  59. database.column
  60. database.engine
  61. database.mongodbObjectId
  62. database.type
  63. datatype.boolean
  64. date.anytime
  65. date.between
  66. date.betweens
  67. date.birthdate
  68. date.future
  69. date.month
  70. date.past
  71. date.recent
  72. date.soon
  73. date.timeZone
  74. date.weekday
  75. finance.accountName
  76. finance.accountNumber
  77. finance.amount
  78. finance.bic
  79. finance.bitcoinAddress
  80. finance.creditCardCVV
  81. finance.creditCardIssuer
  82. finance.creditCardNumber
  83. finance.currency
  84. finance.currencyCode
  85. finance.currencyName
  86. finance.currencyNumericCode
  87. finance.currencySymbol
  88. finance.ethereumAddress
  89. finance.iban
  90. finance.litecoinAddress
  91. finance.maskedNumber
  92. finance.pin
  93. finance.routingNumber
  94. finance.transactionDescription
  95. finance.transactionType
  96. food.adjective
  97. food.description
  98. food.dish
  99. food.ethnicCategory
  100. food.fruit
  101. food.ingredient
  102. food.meat
  103. food.spice
  104. food.vegetable
  105. git.branch
  106. git.commitDate
  107. git.commitEntry
  108. git.commitMessage
  109. git.commitSha
  110. hacker.abbreviation
  111. hacker.adjective
  112. hacker.ingverb
  113. hacker.noun
  114. hacker.phrase
  115. hacker.verb
  116. helpers.arrayElement
  117. helpers.arrayElements
  118. helpers.enumValue
  119. helpers.fake
  120. helpers.fromRegExp
  121. helpers.maybe
  122. helpers.multiple
  123. helpers.mustache
  124. helpers.objectEntry
  125. helpers.objectKey
  126. helpers.objectValue
  127. helpers.rangeToNumber
  128. helpers.replaceCreditCardSymbols
  129. helpers.replaceSymbols
  130. helpers.shuffle
  131. helpers.slugify
  132. helpers.uniqueArray
  133. helpers.weightedArrayElement
  134. image.avatar
  135. image.avatarGitHub
  136. image.avatarLegacy
  137. image.dataUri
  138. image.personPortrait
  139. image.url
  140. image.urlLoremFlickr
  141. image.urlPicsumPhotos
  142. image.urlPlaceholder
  143. internet.color
  144. internet.displayName
  145. internet.domainName
  146. internet.domainSuffix
  147. internet.domainWord
  148. internet.email
  149. internet.emoji
  150. internet.exampleEmail
  151. internet.httpMethod
  152. internet.httpStatusCode
  153. internet.ip
  154. internet.ipv4
  155. internet.ipv6
  156. internet.jwt
  157. internet.jwtAlgorithm
  158. internet.mac
  159. internet.password
  160. internet.port
  161. internet.protocol
  162. internet.url
  163. internet.userAgent
  164. internet.username
  165. internet.userName
  166. location.buildingNumber
  167. location.cardinalDirection
  168. location.city
  169. location.continent
  170. location.country
  171. location.countryCode
  172. location.county
  173. location.direction
  174. location.language
  175. location.latitude
  176. location.longitude
  177. location.nearbyGPSCoordinate
  178. location.ordinalDirection
  179. location.secondaryAddress
  180. location.state
  181. location.street
  182. location.streetAddress
  183. location.timeZone
  184. location.zipCode
  185. lorem.lines
  186. lorem.paragraph
  187. lorem.paragraphs
  188. lorem.sentence
  189. lorem.sentences
  190. lorem.slug
  191. lorem.text
  192. lorem.word
  193. lorem.words
  194. music.album
  195. music.artist
  196. music.genre
  197. music.songName
  198. number.bigInt
  199. number.binary
  200. number.float
  201. number.hex
  202. number.int
  203. number.octal
  204. number.romanNumeral
  205. person.bio
  206. person.firstName
  207. person.fullName
  208. person.gender
  209. person.jobArea
  210. person.jobDescriptor
  211. person.jobTitle
  212. person.jobType
  213. person.lastName
  214. person.middleName
  215. person.prefix
  216. person.sex
  217. person.sexType
  218. person.suffix
  219. person.zodiacSign
  220. phone.imei
  221. phone.number
  222. science.chemicalElement
  223. science.unit
  224. string.alpha
  225. string.alphanumeric
  226. string.binary
  227. string.fromCharacters
  228. string.hexadecimal
  229. string.nanoid
  230. string.numeric
  231. string.octal
  232. string.sample
  233. string.symbol
  234. string.ulid
  235. string.uuid
  236. system.commonFileExt
  237. system.commonFileName
  238. system.commonFileType
  239. system.cron
  240. system.directoryPath
  241. system.fileExt
  242. system.fileName
  243. system.filePath
  244. system.fileType
  245. system.mimeType
  246. system.networkInterface
  247. system.semver
  248. vehicle.bicycle
  249. vehicle.color
  250. vehicle.fuel
  251. vehicle.manufacturer
  252. vehicle.model
  253. vehicle.type
  254. vehicle.vehicle
  255. vehicle.vin
  256. vehicle.vrm
  257. word.adjective
  258. word.adverb
  259. word.conjunction
  260. word.interjection
  261. word.noun
  262. word.preposition
  263. word.sample
  264. word.verb
  265. word.words