user-instagram
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "user-instagram", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Get user data and feed content by scraping Instagram's user page. No OAuth needed.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# User-Instagram | ||
![npm](https://img.shields.io/npm/dt/user-instagram) ![David](https://img.shields.io/david/EdouardCourty/user-instagram) | ||
<br> | ||
[![NPM](https://nodei.co/npm/user-instagram.png)](https://nodei.co/npm/user-instagram) | ||
@@ -3,0 +5,0 @@ |
@@ -9,4 +9,4 @@ const axios = require("axios"); | ||
*/ | ||
module.exports = username => { | ||
return new Promise(async resolve => { | ||
module.exports = (username) => { | ||
return new Promise(async (resolve) => { | ||
let link = normalizeUrl(username); | ||
@@ -13,0 +13,0 @@ const GQL = await axios.get(link); |
@@ -7,3 +7,3 @@ module.exports = { | ||
*/ | ||
normalizeUrl : string => { | ||
normalizeUrl: (string) => { | ||
if (!string.match(/instagram\.com\/[^\/]*/)) { | ||
@@ -10,0 +10,0 @@ string = `https://www.instagram.com/${string}`; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4419
47