cdnjs / api-server

📡 API server for api.cdnjs.com - The #1 free and open source CDN built to make life easier for developers.

Home Page:https://api.cdnjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The fileType field could not be obtained

zmcode opened this issue · comments

https://api.cdnjs.com/libraries?fields=version,fileType

This gets the fileType null

How to obtain ?

https://user-images.githubusercontent.com/48686959/210209757-dbfe5293-284a-4a86-9b1d-f7bf02b8e240.png
The document says to pass the fileType field, but returns null

👋 This should now be working:

curl -sSL api.cdnjs.com/libraries\?fields=fileType | jq -r .results\[0].fileType
js