Skip to content

jser/product-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSer.info Product Name API

Tiny Web API that provide product/library name for a URL.

This Web API using JSer.info Dataset.

Response

  • name: product name
  • url: product url
  • releaseNoteVersion: release note version if the target url is release note.
    • string | undefined
  • releaseNoteProbability: Do this url have release notes?
    • 0 - 1

Usage

Get Supported All products.

curl https://jser-product-name.deno.dev/

Get a product name for URL

curl https://jser-product-name.deno.dev/?url=${url}

Example

$ curl https://jser-product-name.deno.dev/
[{"name":"jQuery Mobile","url":"http://jquerymobile.com"},{"name":"jQuery","url":"http://blog.jquery.com"},{"name":"Node","url":"http://blog.nodejs.org"},{"name":"Bootstrap","url":"http://blog.getbootstrap.com"}, ...]
$ curl "https://jser-product-name.deno.dev/?url=https://deno.com/blog/v1.19"
{"name":"Deno","url":"https://deno.com","releaseNoteProbability":0.7619047619047619,"releaseNoteVersion":"v1.19"}

No Data

$ curl "https://jser-product-name.deno.dev/?url=https://example.com"
null # status code is 400

Develop

make run

Test

make test

Related

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

About

An API that provide product/library name for a URL.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages