
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@ashiknesin/helpers
Advanced tools
This library provides a set of functions to simplify common tasks related to solving captchas, working with AWS services, managing files, and interacting with the Supabase storage. It leverages popular libraries like Axios, Pino, P-Retry, and others to ensure efficient and reliable functionality.
async solveCaptcha({
type: string, // Optional. Default is "image-to-text"
base64Image: string, // Base64-encoded image data
imageUrl: string, // URL of the image
apiKey: string, // 2Captcha API Key
waitUntilResponse: bool // Optional. Default is true
})
Solves a captcha using the 2Captcha service.
class paramStore {
async getParameter(name: string, options?: any): Promise<{ data: string, error: Error }>
async getParameters(names: string[], options?: any): Promise<{ data: { [name: string]: string }, error: Error }>
async getManyByPath(path: string, options?: any): Promise<{ data: { [name: string]: string }, error: Error }>
async get(param: string | string[], options?: any): Promise<{ data: any, error: Error }>
async set(name: string, value: string): Promise<{ data: any, error: Error }>
}
Provides a convenient interface to interact with AWS Systems Manager Parameter Store.
class dynamoDB {
// AWS DynamoDB Document Client instance
}
class s3 {
async upload(key: string, body: any, options?: any): Promise<{ data: { filePath: string }, error: Error }>
async download(key: string, destination: string): Promise<{ data: { filePath: string }, error: Error }>
async remove(keys: string[]): Promise<{ data: { filePaths: string[] }, error: Error }>
async createSignedUrl(key: string, expiresIn: number): Promise<{ data: { signedUrl: string }, error: Error }>
}
Provides utility functions for interacting with AWS S3.
async zipDirectory(inputDirectory: string, outputZipPath: string): Promise<void>
Zips a directory into a specified zip file.
async unzipDirectory(inputZipPath: string, outputDirectory: string): Promise<void>
Unzips a zip file into a specified directory.
const supabaseAdmin = createClient({
url: string,
key: string
})
Creates an instance of the Supabase client for administrative purposes.
async supabaseUploadFile(bucket: string, filePath: string, fileData: any): Promise<void>
Uploads a file to the Supabase storage.
async supabaseDownloadFile(bucket: string, filePath: string, destination: string): Promise<void>
Downloads a file from the Supabase storage.
import {
solveCaptcha,
paramStore,
dynamoDB,
s3,
zipDirectory,
unzipDirectory,
supabaseAdmin,
supabaseUploadFile,
supabaseDownloadFile
} from 'captcha-solver';
// Example usage
const captchaResult = await solveCaptcha({
base64Image: 'base64EncodedImageData',
apiKey: 'your2CaptchaApiKey'
});
const paramValue = await paramStore.getParameter('parameterName');
const s3SignedUrl = await s3.createSignedUrl('objectKey', 3600);
// ... (other examples)
This library is released under the MIT License.
FAQs
Quick helper for side projects
The npm package @ashiknesin/helpers receives a total of 0 weekly downloads. As such, @ashiknesin/helpers popularity was classified as not popular.
We found that @ashiknesin/helpers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.