cdnjs / api-server

📡 API server for api.cdnjs.com - The #1 free and open source CDN built to make life easier for developers.
https://api.cdnjs.com
MIT License
89 stars 38 forks source link

The fileType field could not be obtained #86

Closed zmcode closed 1 year ago

zmcode commented 1 year ago

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

MattIPv4 commented 1 year ago

👋 This should now be working:

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