New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools-test-data/utils

Package Overview
Dependencies
Maintainers
0
Versions
534
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-test-data/utils

Data model for commercetools platform common types

0.0.0-canary-20241223151910
Source
npm
Version published
Weekly downloads
5.9K
12.64%
Maintainers
0
Weekly downloads
 
Created
Source

@commercetools-test-data/utils

This package provides the utils needed when you author your generators.

Install

$ pnpm add -D @commercetools-test-data/utils

createRelatedDates

import { createRelatedDates } from '@commercetools-test-data/utils';
const [getOlderDate, getNewerDate] = createRelatedDates();
const generator = Generator<{ lastModifiedAt: string; createdAt: string }>({
  fields: {
    createdAt: fake(getOlderDate),
    lastModifiedAt: fake(getNewerDate),
  },
});

Keywords

javascript

FAQs

Package last updated on 23 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts