npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

base64-convert

v1.0.1

Published

base64 convert

Downloads

13

Readme

base64-convert

base.ts

export const base64Str = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYwAAAGKCAYAAAAfYHZXAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnXuQ1dWV7xdgQ0s3DSh0hxYTG1MYSyBliaKZWxraR9VYNuTGyQTh3ikvjxDnRrpNhczY+CgfdM+IFaGZO0p4VG7u8LBSZi605VT5gEjNFVEyVgRn1EnAKHbbD7pp+sGjRW6tQ057OH3O+e39++3n7/fln6Ts/Vj7s/Y537P3WnvvEefOnTtH+AcCIOAEgS9a2unz/zxCg+8foS96++nUfxxJ2TWyrJSKv3FF6v+Pnj2TLpp+BY0YV+KEzTAiOQRGQDCS42yM1E0CZz88Qr1bX6SBfQdp8PBnwkYWTfsKjb+7mi6uqaaRleXC9VAQBMISgGCEJYd6IKC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AIKhky7aTgwBvlW1/adN1rKg+LzCuP9W4/TWU2ImQ4wHCsGIsXMxNP0EeP+dL8mzkQXFZxXK/vI2Kl1U41zWk37y6MEGAQiGDeroMxYEbK0q+KqMS+6/h8bMvRGB4ljMJH8GAcHwx1ew1BECvKroemQ99TW/YdQi3nYqnT/X2NOoRgeHzrwgAMHwwk0w0hUCp5p3U+fjm4zFKng1Mf7e+XTx3DnYdnJlEiTYDghGgp2PoYsTMJkBxbGJ0j8/H8QeNb1K3EiUBAHNBCAYmgGjef8J8LmK7k27tK8qeMtpbPUNxt/N9t9DGIEpAhAMU6TRj3cEOKjd2bhF22ltXkmM/bNZKZFAANu76ZFIgyEYiXQ7Bl2IAF9D3vX3m7UcwEtvN42dewOC15iG3hGAYHjnMhisiwDHKU5seJ56tr6itAt+oOjiG2emAtdFs2cobRuNgYBJAhAMk7TRl5MEOE12YFuzsjgFX89x8ZyZNHr6FVQ0eybOSjjpdRgVhgAEIww11IkFARVCkY5DjL66isZcNwMriFjMDAwiHwEIBuZG4giEFQreWhpzzTS66LLylDhcdFUVVg+Jmz3JHjAEI9n+T9ToRYSCD8oVXV5BRVMrUsLA20ojxpVi5ZComYLB5iPw/wER/wjgqro+VwAAAABJRU5ErkJggg=='
  1. 将base64编码的字符串转换为Blob对象

    Convert base64 encoded strings to Blob objects)

    import { base64ToBlob } from 'base64-convert';
    import { base64Str } from './base';
       
    const testBase64ToBlob = async () => {
    	const blob = await base64ToBlob(base64Str);
      console.log(blob);
    }
       
    testBase64ToBlob(); // {size; 15406,type; image/png'}
  2. 将base64编码的字符串和文件名返回文件URL

    Return the base64 encoded string and file name to the file URL

    import { base64ToFileUrl } from 'base64-convert';
    import { base64Str } from './base';
       
    const testBase64ToFileUrl = async () => {
    	const tmpUrl = await base64ToFileUrl(base64Str, 'image.png');
      console.log(tmpUrl);
    }
       
    testBase64ToFileUrl(); // blob:http://localhost:5173/b640e8a5-18da-4bfd-bbd0-7fefd60e044f
  3. 将base64编码的字符串转换为File对象并返回

    Convert a base64 encoded string to a File object and return

    import { base64ToFile } from 'base64-convert';
    import { base64Str } from './base';
       
    const testBase64ToFile = async () => {
    	const file = await base64ToFile(base64Str, 'image.png');
      console.log(file);
    }
       
    testBase64ToFile(); // {name: 'image.png', lastModified: 1686216236128, lastModifiedDate: Thu Jun 08 2023 17:23:56 GMT+0800 (中国标准时间), webkitRelativePath: '', size: 15406, …}
  4. 将File对象转换为base64编码的字符串

    Convert the File object to a base64 encoded string

    import { fileToBase64 } from 'base64-convert';
    import { base64Str } from './base';
       
    const testFileToBase64 = async () => {
    	const base64 = await fileToBase64(file);
      console.log(base64);
    }
       
    testBase64ToFile()