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

Query by file type #36

Open Longgererer opened 4 years ago

Longgererer commented 4 years ago

Hello, is there any way to filter by file type? Like this: https://api.cdnjs.com/libraries?fileType=css

dhruvkrishnavaid commented 4 years ago

As per my discovery, the answer is a straight NO! But, I think that the developers should add this feature too as this would make the search process faster, easier and more productive.

MattIPv4 commented 4 years ago

Moving to api-server as this is an API request. I can look at implementing it, but please note that fileType is based on the extension of the default file for a library and is not really a good indicator of the actual library type.