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

@commercetools-test-data/category

Package Overview
Dependencies
Maintainers
3
Versions
537
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-test-data/category

Data model for commercetools platform common types

0.0.0-canary-20214219323
Source
npm
Version published
Weekly downloads
5.4K
46.48%
Maintainers
3
Weekly downloads
 
Created
Source

@commercetools-test-data/category

This package provides the data model for the commercetools platform Category type

https://docs.commercetools.com/api/projects/categories

Install

$ yarn add -D @commercetools-test-data/category

Usage

import Category from '@commercetools-test-data/category';
const category = Category.random().build();
console.log(category);
// {
//   "id": <UUID>,
//   "version": 1,
//   "createdAt": "2018-12-19T21:31:56.346Z",
//   "lastModifiedAt": "2019-09-24T10:04:20.946Z",
//   "name": {
//     "en": "Clothes"
//   },
//   "slug": {
//     "en": "clothes"
//   },
//   "ancestors": [],
//   "orderHint": "0.01",
//   "assets": []
// }

Keywords

javascript

FAQs

Package last updated on 02 May 2021

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