Plugin API
English
English
  • Getting Started
    • Introduction
    • Your First Plugin
    • File Structure Overview
    • Plugin Types
      • Window
      • Background Service
      • Format Extension
      • Inspector
    • Debug Plugin
  • Distribution
    • Prepare Plugin
    • Package Plugin
    • Publish Plugin
    • Update Plugin
    • Developer Policies
    • Plugin Icon Template
  • Developer Guide
    • manifest.json Configuration
    • Retrieve Data
    • Modify Data
    • Access Local Files
    • Issue Network Requests
    • Using Node.js Native API
    • Using Third-Party Modules
    • Multilingual (i18n)
    • Frameless Window
  • API Reference
    • event
    • item
    • folder
    • tag
    • tagGroup
    • library
    • window
    • app
    • os
    • screen
    • notification
    • contextMenu
    • dialog
    • clipboard
    • drag
    • shell
    • log
  • Extra Moudle
    • FFmpeg
Powered by GitBook
On this page
  • Methods
  • info()
  • Properties
  • name string
  • path string
  • modificationTime Integer
  1. API Reference

library

Get information about the repository currently being used by Eagle.

Methods

info()

Get detailed information about the current repository, including folders, smart folders, tag groups, etc.

  • Returns Promise<data: Object>

    • data Object - Various properties of the repository

console.log(await eagle.library.info());

Properties

The library module includes the following properties:

name string

Returns the name of the current repository

console.log(eagle.library.name)
// test

path string

Returns the path where the current repository is located

console.log(eagle.library.path);
// C:\Users\User\Pictures\Design.library

modificationTime Integer

Returns the last modification time (timestamp)

console.log(eagle.library.modificationTime);
// 1681281134495
PrevioustagGroupNextwindow

Last updated 2 years ago