Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samcus/clearbit-logo
Clearbit Logo API in Nodejs
https://github.com/samcus/clearbit-logo
Last synced: about 2 months ago
JSON representation
Clearbit Logo API in Nodejs
- Host: GitHub
- URL: https://github.com/samcus/clearbit-logo
- Owner: samcus
- License: mit
- Created: 2017-04-07T18:58:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T15:39:34.000Z (over 7 years ago)
- Last Synced: 2024-07-17T19:56:16.593Z (2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clearbit-logo
Clearbit Logo API in Nodejs```sh
# Install as a dependency
npm i -S clearbit-logo
``````js
const ClearbitLogo = require('clearbit-logo');let logo = new ClearbitLogo
// Get Suggestions for a Company Name or URL
logo.suggestions('Amazon').then((companies)=>{
console.log(companies);
});// Get the Top Suggestion for a Company Name or URL
logo.topSuggestion('Amazon').then((company) => {
console.log(company);
});// Get the Logo URL
logo.image('amazon.com').then((logoURL) => {
console.log(logoURL);
});// Specify Size and Greyscale Options
logo.image('amazon.com', {size: 60, greyscale: true}).then((logoURL) => {
console.log(logoURL);
});// Size Only
logo.image('amazon.com', {size: 60}).then((logoURL) => {
console.log(logoURL);
});// Greyscale Only
logo.image('amazon.com', { greyscale: true }).then((logoURL) => {
console.log(logoURL);
});
```