Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@eternaljs/base64-info
Advanced tools
Readme
The base64-info npm package is a lightweight and efficient utility that simplifies working with base64 encoded strings by providing convenient methods to extract crucial details. With this package, you can effortlessly determine the type, extension, and content of base64 strings, making it an essential tool for developers dealing with binary data conversions.
Type Detection: Easily identify the type of data represented by a base64 string, whether it's an image, audio, video, or other file formats.
Extension Inference: Automatically infer the file extension associated with the base64 content, ensuring accurate representation when decoding or processing the data.
Content Extraction: Retrieve the binary content from a base64 string, enabling seamless integration with various data manipulation workflows.
Efficient Performance: Designed for optimal performance, base64-info provides quick and reliable results, suitable for both small and large-scale applications.
Whether you're building applications that involve image uploading, multimedia handling, or file conversion, base64-info streamlines the process of working with base64 encoded data, allowing you to focus on delivering robust and feature-rich applications.
Using npm:
$ npm install @eternaljs/base64-info
Using yarn:
$ yarn add @eternaljs/base64-info
// JavaScript
const { getBase64Info } = require("@eternaljs/base64-info");
// TypeScript
import { getBase64Info } from "@eternaljs/base64-info";
These examples assume you're in node, or something similar:
const base64Details = getBase64Info(base64String);
// Log
console.log(base64Details);
// Output
{
"name": "JPEG",
"type": "image/jpeg",
"sign": "/9j/4AAQSk",
"extension": "jpeg",
"content": "data:image/jpeg;base64",
"category": "image",
"base64": "/9j/4AAQSkZJRgABAQEASABIAAD"
}
jpeg
,
jpg
,
png
,
jfif
,
gif
,
webp
,
xcf
,
bmp
,
cur
,
dds
,
exr
,
fts
,
hdr
,
ico
,
jpe
,
jps
,
mng
,
pam
,
pbm
,
pcd
,
pcx
,
pgm
,
picon
,
pict
,
pnm
,
ppm
,
psd
,
ras
,
sgi
,
svg
,
tga
,
tiff
,
wbmp
,
xbm
,
xpm
,
xwd
,
erf
,
heic
,
jp2
,
pes
,
pfm
,
heif
,
swf
,
dng
,
orf
,
X3F
,
nrw
,
rw2
,
nef
,
pef
,
raf
,
cr2
,
xlsx
,
xls
,
txt
,
ott
,
odt
,
ods
,
odp
,
djvu
,
doc
,
csv
,
ppt
,
rtf
,
docx
,
pdf
,
cvsd
,
cvu
,
gsrt
,
hcom
,
m4a
,
mp3
,
ogg
,
opus
,
prc
,
sln
,
spx
,
txw
,
vms
,
wve
,
cvs
,
dvms
,
m4r
,
wma
,
ima
,
ra
,
vox
,
aac
,
sndr
,
sndt
,
ac3
,
8svx
,
fssd
,
htk
,
smp
,
sou
,
aiff
,
flac
,
oga
,
tta
,
wv
,
sd2
,
amb
,
au
,
avr
,
caf
,
cdda
,
dts
,
fap
,
ircam
,
maud
,
nist
,
paf
,
pvf
,
snd
,
sph
,
voc
,
w64
,
wav
,
bat
,
htaccess
,
json
,
kml
,
sql
,
c
,
cpp
,
cs
,
css
,
go
,
h
,
java
,
pl
,
py
,
rb
,
sh
,
html
,
html
,
swift
,
test
,
vb
,
yaml
,
class
,
js
,
snb
,
pdb
,
mobi
,
lrf
,
fb2
,
epub
,
azw3
,
woff
,
ttf
,
sfd
,
ps
,
pfb
,
otf
,
bin
,
dfont
,
cff
MIT
FAQs
Enhance base64 workflows. Swiftly retrieve type, extension, and content info. Simplify binary data management for smoother project integration.
The npm package @eternaljs/base64-info receives a total of 13 weekly downloads. As such, @eternaljs/base64-info popularity was classified as not popular.
We found that @eternaljs/base64-info demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.