instagram-search
Version:
A simple instagram package that finds profiles for you
16 lines (9 loc) • 502 B
JavaScript
const fetch = require("node-fetch");
module.exports = async (input, options = {}) => {
if (!input) throw new Error("Input is a required argument");
if (typeof options === "string") options = { user: "outpex" };
// const user = "user" in options ? options.user : "outpex";
// const { file } = await await fetch(`https://instagram.com/${user}/`).then(response => response.json());
// if (!res.ok) throw new Error(res.statusText);
return `https://instagram.com/${user}/`;
};