library(資源庫)

取得當前 Eagle 正在使用的資源庫資訊。

方法

info()

取得當前資源庫詳細資訊,包含資料夾、智慧資料夾、標籤羣組等

  • 返回 Promise<data: Object>

    • data Object - 資源庫各項屬性

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

屬性

library 模組包含以下屬性:

name string

返回當前資源庫名稱

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

path string

返回當前資源庫所在路徑

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

modificationTime Integer

返回最後修改時間 (timestamp)

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

\

最后更新于