Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

factory.ts

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factory.ts - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"name": "factory.ts",
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "description":

@@ -46,2 +46,14 @@ # factory.ts

You can also call `personFactory.build` with no arguments to use factory defaults:
```typescript
const anybody = personFactory.build();
```
And you can create an array of objects from factory using `buildList` (with or without the `Partial` override):
```typescript
const theBradyBunch = personFactory.buildList(8, { lastName: 'Brady' });
```
### Extending factories

@@ -48,0 +60,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc