取得當前 Eagle 正在使用的資源庫資訊。
取得當前資源庫詳細資訊,包含資料夾、智慧資料夾、標籤羣組等
返回 Promise<data: Object>
Promise<data: Object>
data Object - 資源庫各項屬性
data
console.log(await eagle.library.info());
library 模組包含以下屬性:
library
name
返回當前資源庫名稱
console.log(eagle.library.name) // test
path
返回當前資源庫所在路徑
modificationTime
返回最後修改時間 (timestamp)
Last updated 2 years ago
console.log(eagle.library.path); // C:\Users\User\Pictures\Design.library
console.log(eagle.library.modificationTime); // 1681281134495