Skip to main content

Code

randCodeSnippet

Generate a random code snippet.

import { randCodeSnippet } from '@ngneat/falso';

randCodeSnippet()
randCodeSnippet({ length: 10 })
randCodeSnippet({ lang: 'html' }) // default is 'javascript'
Live Editor
Result
Loading...

randFontFamily

Generate a random font family.

import { randFontFamily } from '@ngneat/falso';

randFontFamily()
randFontFamily({ length: 10 })
Live Editor
Result
Loading...

randFontSize

Generate a random font size.

import { randFontSize } from '@ngneat/falso';

randFontSize()
randFontSize({ length: 10 })
Live Editor
Result
Loading...

randProgrammingLanguage

Generate a random programming language.

import { randProgrammingLanguage } from '@ngneat/falso';

randProgrammingLanguage()
randProgrammingLanguage({ length: 10 })
Live Editor
Result
Loading...