🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@elastic/ecs

Package Overview
Dependencies
Maintainers
64
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/ecs

Automatically generated TypeScript type definitions for the [Elastic Common Schema](https://www.elastic.co/guide/en/ecs/current/index.html).

Source
npmnpm
Version
8.11.3
Version published
Weekly downloads
62K
19.41%
Maintainers
64
Weekly downloads
 
Created
Source

@elastic/ecs

Automatically generated TypeScript type definitions for the Elastic Common Schema.

When run, this program will fetch the ECS schema from the elastic/ecs repository. Defaults to main ref, can be overridden with --ref flag.

Local development

  • Install yarn & Node.js
  • yarn build: Runs tsc
  • yarn dev: Runs tsc and watches for changes
  • yarn test: Runs unit tests with jest
  • yarn generate-ecs-types: Generates a ts file in generated/ecs.ts

Entrypoints

@elastic/ecs only exports ecs-based type definitions and an EcsVersion constant.

@elatic/ecs/extended contains both type definitions and the EcsFlat object, that contains the entire schema parsed as object literal. This can be used for advanced validation scenarios.

FAQs

Package last updated on 16 Apr 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