
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@atayahmet/blobify
Advanced tools
A Javascript automation tool to convert file to blob object and vice-versa.
A Javascript automation tool to convert from html file object to blob object and more capabilities with creating custom helper function.
import { chunk } from '@atayahmet/blobify';
chunk({ chars: stream, slice: 128, type: 'image/jpg' })
npm i @atayahmet/blobify --save
or
yarn add @atayahmet/blobify
npm test
Name | Parameter Type | Return | Description |
---|---|---|---|
pipe | Function | Blobify class instance | Pipe itarator. |
createBlob | string[] | Blob | Create blob object from chunks. |
chunk | IChunkOptions | Uint8Array[] | Chunk generator. |
base64Encode | File | Promise<string> | HTML5 File object. |
base64Decode | string | any | Base64 encoded data. |
toStream | Blob | Promise<string> | Convert blob object to readable content. |
Name | Type | Description |
---|---|---|
chunks | string or Uint8Array | Data format. |
slice | number (optional) | Per chunk size. (Default 512) |
type | string | File content type. |
Convert the file to uploadable form.
import { pipe, chunk, createBlob, base64Encode } from '@atayahmet/blobify';
const file = document.getElementById('image');
pipe(() => base64Encode(file))
.pipe(stream => chunk({ chars: stream, slice: 128 }))
.pipe(chunks => createBlob(chunks, "image/jpeg"))
.catch(console.error)
.run()
.then(resul => {
console.log(result);
});
Vice versa:
pipe(() => toStream(blob))
.pipe(stream => base64Decode(stream))
.pipe(data => {
// do some maniplation...
return data;
})
.run()
.then(result => {
// ...
});
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
A Javascript automation tool to convert file to blob object and vice-versa.
The npm package @atayahmet/blobify receives a total of 4 weekly downloads. As such, @atayahmet/blobify popularity was classified as not popular.
We found that @atayahmet/blobify demonstrated a not healthy version release cadence and project activity because the last version was released 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.