kinghaki-api
v1.0.1
Published
An npm with some features.
Downloads
110
Maintainers
Readme
kinghaki-api
An API package providing various utilities, including media downloading and processing features.
Installation
You can install ironman-api
using npm:
npm install kinghaki-api
Features
- Pinterest Downloader
- MediaFire Downloader
- Telegraph Uploader
- TikTok Downloader
- Uguu Uploader
- M3U8 Converter
Download media from Pinterest.
const { pinterest } = require('kinghaki-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('kinghaki-api');
//import { mediafire } from 'kinghaki-api';
(async () => {
console.log(await mediafire('https://www.mediafire.com/xyz.zip'));
})();
Telegraph
Upload images to Telegraph.
const { telegraph } = require('kinghaki-api');
//import { telegraph } from 'kinghaki-api';
(async () => {
console.log(await telegraph('./img.png'));
})();
TikTok
Download videos from TikTok.
const { tiktok } = require('kinghaki-api');
//import { tiktok } from 'kinghaki-api';
(async () => {
console.log(await tiktok('https://www.tiktok.com/videourl'));
})();
File Uploader to Uguu
Upload images to Uguu .
const { fileUguu } = require('kinghaki-api');
//import { fileUguu } from 'kinghaki-api';
(async () => {
console.log(await fileUguu('./img.png'));
})();
M3U8 Converter
M3U8 to MP4
const { m3u8 } = require('kinghaki-api');
//import { m3u8 } from 'kinghaki-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