puter.workers.list()
Lists all workers in your account with their details.
puter.workers.list()
None.
A Promise
that resolves to a JavaScript object where:
url
(String) - The public URL of the workerfilePath
(String) - The path to the source filedeployTime
(Number) - Unix timestamp of when the worker was deployed{
"my-api": {
"url": "https://my-api.puter.work",
"filePath": "/username/Desktop/api-server.js",
"deployTime": 1672531200
},
"blog-backend": {
"url": "https://blog-backend.puter.work",
"filePath": "/username/Desktop/blog.js",
"deployTime": 1672617600
},
"test-worker": {
"url": "https://test-worker.puter.work",
"filePath": "/username/Desktop/test.js",
"deployTime": 1672704000
}
}