diff --git a/README.md b/README.md index 7d3d67c10..7dab7c0b6 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Create massive amounts of fake data in the browser and NodeJS. Tree Shakeable &
-✅ 203 Functions +✅ 205 Functions ✅ Tree Shakable ✅ Fully Typed ✅ Factory Functions diff --git a/docs/docs/getting-started.mdx b/docs/docs/getting-started.mdx index b34d42bc9..b3674902f 100644 --- a/docs/docs/getting-started.mdx +++ b/docs/docs/getting-started.mdx @@ -13,7 +13,7 @@ title: Getting Started /> -✅ 203 Functions +✅ 205 Functions ✅ Tree Shakable ✅ Fully Typed ✅ Entity Functions diff --git a/packages/falso/src/index.ts b/packages/falso/src/index.ts index e29adeafd..9ddf5657e 100644 --- a/packages/falso/src/index.ts +++ b/packages/falso/src/index.ts @@ -1,6 +1,7 @@ export { randAbbreviation } from './lib/abbreviation'; export { randAccessory } from './lib/accessory'; export { randAccount } from './lib/account'; +export { randAdjective } from './lib/adjective'; export { randAlpha } from './lib/alpha'; export { randAlphaNumeric } from './lib/alpha-numeric'; export { randAmericanFootballTeam } from './lib/american-football-team'; @@ -116,6 +117,7 @@ export { randMovieCharacter } from './lib/movie-character'; export { randMusicGenre } from './lib/music-genre'; export { randNearbyGPSCoordinate } from './lib/nearby-gpscoordinate'; export { randNumber } from './lib/number'; +export { randNoun } from './lib/noun'; export { randOAuthProvider } from './lib/oauth-provider'; export { randOctal } from './lib/octal'; export { randOrdinalDirection } from './lib/ordinal-direction'; diff --git a/packages/falso/src/lib/adjective.json b/packages/falso/src/lib/adjective.json new file mode 100644 index 000000000..4ec41243a --- /dev/null +++ b/packages/falso/src/lib/adjective.json @@ -0,0 +1,203 @@ +{ + "data": [ + "Awesome", + "Rustic", + "Small", + "Gorgeous", + "Fantastic", + "Sleek", + "Intelligent", + "Unbranded", + "Refined", + "Licensed", + "Generic", + "Practical", + "Ergonomic", + "Handcrafted", + "Tasty", + "Handmade", + "Incredible", + "Delightful", + "Unique", + "Stylish", + "Modern", + "Sophisticated", + "Charming", + "Classic", + "Innovative", + "Elegant", + "Compact", + "Durable", + "Vivid", + "Reliable", + "Bright", + "Versatile", + "Bold", + "Simple", + "Luxurious", + "Warm", + "Cozy", + "Magical", + "Sturdy", + "Trendy", + "Efficient", + "Powerful", + "Vibrant", + "Graceful", + "Flawless", + "Distinctive", + "Lively", + "Dynamic", + "Alluring", + "Captivating", + "Radiant", + "Cheerful", + "Playful", + "Breathtaking", + "Inviting", + "Serene", + "Crisp", + "Soft", + "Smooth", + "Harmonious", + "Precise", + "Delicate", + "Exquisite", + "Majestic", + "Coherent", + "Polished", + "Peaceful", + "Luminous", + "Timeless", + "Rustic", + "Venerable", + "Sparkling", + "Futuristic", + "Creative", + "Bold", + "Zesty", + "Artistic", + "Cheery", + "Optimistic", + "Glowing", + "Dramatic", + "Mysterious", + "Rich", + "Intriguing", + "Robust", + "Neat", + "Whimsical", + "Unusual", + "Chic", + "Deliberate", + "Inspired", + "Fanciful", + "Energetic", + "Remarkable", + "Distinguished", + "Zany", + "Eclectic", + "Adaptable", + "Comfortable", + "Healthy", + "Affordable", + "Reliable", + "Artful", + "Focused", + "Minimalist", + "Groundbreaking", + "Subtle", + "Enduring", + "Mature", + "Sensible", + "Essential", + "Dependable", + "Thrifty", + "Meticulous", + "Balanced", + "Graceful", + "Adorable", + "Quaint", + "Lush", + "Bubbly", + "Vast", + "Energetic", + "Imaginative", + "Transparent", + "Natural", + "Classic", + "Festive", + "Dynamic", + "Tough", + "Inspired", + "Adaptive", + "Inventive", + "Clever", + "Witty", + "Youthful", + "Empowering", + "Amusing", + "Relaxing", + "Wholesome", + "Bold", + "Charismatic", + "Comprehensive", + "Savvy", + "Indulgent", + "Spontaneous", + "Exceptional", + "Opulent", + "Thorough", + "Precious", + "Astounding", + "Radiant", + "Dashing", + "Profound", + "Ethical", + "Magnetic", + "Exuberant", + "Refreshing", + "Breezy", + "Humble", + "Organic", + "Friendly", + "Loyal", + "Motivated", + "Enthusiastic", + "Insightful", + "Holistic", + "Jubilant", + "Vigorous", + "Inventive", + "Unstoppable", + "Intuitive", + "Flexible", + "Courageous", + "Magnetic", + "Fair", + "Precious", + "Charming", + "Diligent", + "Vivid", + "Earthy", + "Ample", + "Stunning", + "Introspective", + "Gleaming", + "Innovative", + "Nostalgic", + "Lavish", + "Sublime", + "Hearty", + "Posh", + "Graceful", + "Uplifting", + "Heroic", + "Ambitious", + "Plush", + "Affable", + "Brilliant", + "Endearing", + "Genuine" + ] +} diff --git a/packages/falso/src/lib/adjective.ts b/packages/falso/src/lib/adjective.ts new file mode 100644 index 000000000..ecd85eb8a --- /dev/null +++ b/packages/falso/src/lib/adjective.ts @@ -0,0 +1,22 @@ +import { FakeOptions, fake } from './core/core'; +import { data } from './adjective.json'; + +/** + * Generate a random adjective. + * + * @category text + * + * @example + * + * randAdjective() + * + * @example + * + * randAdjective({ length: 10 }) + * + */ +export function randAdjective