ZHM Plume Knowledge Base

website·Indexed 29 days ago

https://zhm-plume.vercel.app

A diverse collection of technical notes and traditional references, featuring JavaScript interview questions on the Event Loop, Promise, and this object, TypeScript type challenges, and entries from the Shennong Bencao on traditional Chinese medicine.

Tokens
115K
Snippets
440
Records
857
Agent score
74%

What's inside ZHM Plume

  1. Overview of Chrome Local Overrides for mocking requests

    Starting with Chrome 117, the 'overrides content' feature allows developers to replace network resources with local copies. This is useful for simulating data scenarios during debugging without waiting for backend updates. Supported overrides include HTTP response headers, HTTP response content, and general web resources (XHR and fetch requests).
  2. Overview of axios HTTP library features

    axios is a Promise-based HTTP client that works in both browser and Node.js environments. Its core capabilities include:

    • Creating XMLHttpRequests in the browser and HTTP requests in Node.js
    • Support for the Promise API
    • Request and response interception
    • Transformation of request and response data
    • Request cancellation
    • Automatic JSON data transformation
    • Client-side XSRF protection
  3. Overview of Browser Events

    Events are actions triggered within a browser window, typically bound to specific parts of the window such as individual elements, groups of elements, HTML code, or the window itself. Common examples include:

    • User interactions: Mouse clicks, cursor hovering, keyboard presses, or resizing the browser window.
    • Page lifecycle: When a webpage stops loading.
    • Form actions: Submitting a form.
    • System events: When an error occurs.
  4. Overview of Lerna for Monorepo Management

    Lerna is a multi-package management tool optimized for workflows using git and npm/yarn to manage multiple software packages within a single repository. It simplifies dependency management, versioning, and workflows across multiple packages (e.g., splitting a large project into packages like @babel/core and @babel/parser).
  5. Overview of the Promise A+ Specification

    The Promise A+ specification is an open, robust, and general JavaScript Promise standard. Rather than defining how to create, resolve, or reject a promise, the specification focuses specifically on providing a standardized, universal .then() method to ensure interoperability between different Promise implementations.
  6. Overview of HTML5 new features

    HTML5 introduced several key features to enhance web capabilities, including:

    • Multimedia: Native video and audio elements for media playback.
    • Graphics: The canvas element for 2D drawing and animations.
    • Local Storage: localStorage and sessionStorage for offline data storage on the client side.
    • Semantic Elements: New tags like article, footer, header, nav, section, and aside to provide better document structure and meaning.
    • Concurrency: Web Workers for running scripts in background threads.
    • Real-time Communication: WebSockets for full-duplex communication channels over a single TCP connection.
  7. Overview of the lodash utility library

    lodash is a utility library that provides a comprehensive set of helper functions for manipulating data structures, including strings, arrays, objects, and collections. It supports both importing the entire library or importing specific utility functions individually to optimize bundle size.
  8. Overview of spearjs low-code platform

    spearjs is a low-code platform built using Vite. The frontend is developed with Vue and the backend is powered by NestJS.
  9. Overview of Cross-Origin Resource Sharing (CORS)

    CORS is an HTTP header-based mechanism that allows a server to specify which origins (domain, protocol, and port) are permitted to access resources on that server. By default, browsers restrict cross-origin requests via the Same-Origin Policy (SOP) for APIs like XMLHttpRequest and Fetch. To enable cross-origin access, the server must respond with appropriate CORS headers. For requests that may have side effects, the browser sends a 'preflight' request using the OPTIONS method to verify server permission before sending the actual request.
  10. Overview of Signals in Frontend Frameworks

    Signals are units of data that can change over time, acting as the underlying technical dependency for many modern frontend frameworks. They are used to manage state and reactivity more efficiently than manual publication/subscription patterns. A Signal can be a 'State' (a manually set value) or 'Computed' (a value derived from other signals).

    Commonly used in frameworks such as SolidJS, Vue 3, Preact, Qwik, Svelte, and Angular. There is also a TC39 Stage-0 proposal to integrate Signals into the JavaScript standard to improve performance and enable cross-framework signal sharing.

  11. Overview of PM2 Process Manager for Node.js

    PM2 is a production process manager for Node.js applications that allows you to manage Node apps and run persistent services. It provides essential operational features including performance monitoring, automatic restarting of crashed processes, and load balancing to ensure high availability.
  12. Introduction to Jenkins and Pipeline Structure

    Jenkins is an open-source continuous integration (CI) tool developed in Java. It provides a vast ecosystem of plugins to support software building, deployment, and automation. For CI/CD implementation, Jenkins commonly uses 'Pipelines' to abstract the software iteration process into a sequence of Stages and Steps.

    • Stages: High-level phases of the delivery process (e.g., build, test, deploy).
    • Steps: The smallest unit of work within a stage, such as executing a specific shell command.