Skip to content

samcus/clearbit-logo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clearbit-logo

Clearbit Logo API in Nodejs

# Install as a dependency
npm i -S clearbit-logo
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);
});

About

Clearbit Logo API in Nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published