🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

ts-cologo

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-cologo

Extract company logos

latest
Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
6
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

README.md

Get company logos/favicons by domain

A TypeScript package to find company logos or favicons by domain (use as a fallback).

This package is designed to download company logos and convert them to base64. It can be used as a backup mechanism where you are missing some logos but know the domain of the company

Installation

npm install ts-cologo

Usage

import { fetchAsBase64String } from 'ts-cologo';

const base64String = await fetchAsBase64String(
  fetch,
  'https://www.iana.org/_img/2022/iana-logo-header.svg'
);
const base64Logo = await fallbackCompanyLogoFetch(fetch, 'google.com')
console.log(base64String); // data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4w....
console.log(base64Logo); // data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4w....

Contributing

We welcome contributions to improve this package. Here's how you can contribute:

  • Fork the repository
  • Create a new branch
  • Make your changes
  • Test your changes
  • Submit a pull request

License

This project is licensed under the MIT License.

Keywords

companies

FAQs

Package last updated on 24 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts