ironman-api
v2.0.1
Published
An npm with some features.
Downloads
515
Maintainers
Readme
Ironman-API
An API package providing various utilities, including media downloading and processing features.
Installation
You can install ironman-api
using npm:
npm install ironman-api
Features
- Pinterest Downloader
- MediaFire Downloader
- Telegraph Uploader
- TikTok Downloader
- Uguu Uploader
- M3U8 Converter
Download media from Pinterest.
const { pinterest } = require('ironman-api');
//import { pinterest } from 'ironman-api';
(async () => {
console.log(await pinterest('https://in.pinterest.com/pin/617204323960160868/'));
})();
You can use pin.it and in.pinterest.com URLs.
MediaFire
Download files from MediaFire.
const { mediafire } = require('ironman-api');
//import { mediafire } from 'ironman-api';
(async () => {
console.log(await mediafire('https://www.mediafire.com/xyz.zip'));
})();
Telegraph
Upload images to Telegraph.
const { telegraph } = require('ironman-api');
//import { telegraph } from 'ironman-api';
(async () => {
console.log(await telegraph('./img.png'));
})();
TikTok
Download videos from TikTok.
const { tiktok } = require('ironman-api');
//import { tiktok } from 'ironman-api';
(async () => {
console.log(await tiktok('https://www.tiktok.com/videourl'));
})();
File Uploader to Uguu
Upload images to Uguu .
const { fileUguu } = require('ironman-api');
//import { fileUguu } from 'ironman-api';
(async () => {
console.log(await fileUguu('./img.png'));
})();
M3U8 Converter
M3U8 to MP4
const { m3u8 } = require('ironman-api');
//import { m3u8 } from 'ironman-api';
const convert = new m3u8();
convert.InputFile('https://file.m3u8') //also can be a path
.OutputFile('./output.mp4') //default is output.mp4
//.UseCLI(true); if you want to process it using CLI
.start({
onStart: () => console.log('Processing started...'),
onEnd: () => console.log('Processing finished!')
});
Complete start
options
.start({
onStart: () => console.log('Processing started...'),
onEnd: () => console.log('Processing finished!'),
onProgress: (progress) => console.log(`Progress: ${progress}`),
onStderr: (stderr) => console.error(`Error: ${stderr}`),
onCodecData: (data) => console.log(`Codec Data: ${data}`),
onError: (error) => console.error(`Error: ${error}`)
});
Coming Soon
This package is under development, and many exciting features are planned for future releases. Stay tuned for updates and enhancements!
Contributing
We welcome contributions! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request. If you want to contact me, check my GitHub profile.
Copyright © 2024 IRON-M4N