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

@univerjs/core

Package Overview
Dependencies
Maintainers
0
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@univerjs/core

Core library for Univer.

  • 0.4.0-nightly.202410141110
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.5K
decreased by-71.73%
Maintainers
0
Weekly downloads
 
Created
Source

@univerjs/core

Package Overview

Package NameUMD NamespaceVersionLicenseDownloadsContains CSSContains i18n locales
@univerjs/coreUniverCore

Introduction

@univerjs/core as its name shows, is the core package of Univer, and provides foundational capabilities including:

  • Provision of the Univer type, which serves as the entry point for applications and a mounting point for other plugins, as well as the UniverDoc and UniverSheet types for managing different document types
  • Basic models for each document type
  • Definition or implementation of several fundamental services, such as:
    • Permission control
    • Command system
    • Undo/Redo
    • Configuration system
    • Logging system
    • Context system
    • Lifecycle
    • Local storage
    • Internationalization
    • Resource management

For more information about @univerjs/core's API, please refer to the API documentation.

Usage

Installation

# Using npm
npm install @univerjs/core

# Using pnpm
pnpm add @univerjs/core

Configuration

import { Univer } from '@univerjs/core';

new Univer({
    theme: defaultTheme,
    locale: LocaleType.EN_US,
    locales,
    logLevel: LogLevel.VERBOSE,
});
Options
NameTypeDefaultDescription
themeTheme-The theme of the application, which is used to control the appearance of the application.
localeLocaleTypeLocaleType.ZH_CNThe locale of the application. The default value is LocaleType.ZH_CN.
localesILocales-The supported locales of the application. By default, the application supports Chinese.
logLevelLogLevelLogLevel.SILENTThe log level of the application.

Keywords

FAQs

Package last updated on 14 Oct 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

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