Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
This module provides easy access to the AppURL API for NodeJS.
The AppURL API requires an API key / access token. To get your access token, visit https://docs.appurl.com/api/get-access-token.
For more information on the API structure, check out the AppURL API Docs.
NPM
npm install appurl
YARN
yarn add appurl
Remember, this library uses an API key provided by AppURL. To get your access token check out docs.appurl.com/api/get-access-token.
If you would like more info on the underlying API check out docs.appurl.com.
Example:
import { AppUrlClient } from 'appurl';
const appurl = AppUrlClient('TOKEN');
async function getShortedUrl(url) {
let result;
try {
result = await appurl.shorten(url);
} catch (err) {
throw err;
}
return result;
}
getShortenedUrl('https://google.com');
Because the AppURL API is protected by an API key which you are responsible for we are able to offer more access.
The AppURL API and this Module accept image uploads. This allows for very specific control of how your link preview looks when shared across a variety of mobile devices and apps.
To use the image upload you must for BASE64 encode your image, then pass that string as the second argument of your shorten function call. Here is an example.
Example:
import { AppUrlClient } from 'appurl';
const appurl = AppUrlClient('TOKEN');
const base64EncodedImage = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=';
async function getShortedUrl(url, base64EncodedImage) {
let result;
try {
result = await appurl.shorten(url, base64EncodedImage);
} catch (err) {
throw err;
}
return result;
}
getShortenedUrl('https://google.com', base64EncodedImage);
The code above will upload the image at set it as your preview image. This is extremely handy for sharing.
Optional properties are one more way you have complete control over your AppURL. The third optional argument of the shorten function is an object containing a very specific list of settings for your AppURL allowing you to control every aspect of it's functionality.
Properties
'appName'
'fallbackUrl'
'iosIphoneAppUrl'
'iosIphoneFallbackUrl'
'iosIpadFallbackUrl'
'iosIpadAppUrl'
'androidAppPackage'
'androidAppScheme'
'androidFallbackUrl'
'windowsPhoneAppUrl'
'windowsPhoneFallbackUrl'
'blackberryFallbackUrl'
'clickSendUsername'
'clickSendApiKey'
'googleAnalyticId'
'ogDescription'
'ogImageUrl'
This example would upload the custom preview image and set the redirect landing page title to "My App" and the share preview description to "This is my amazing app!".
Example:
import { AppUrlClient } from 'appurl';
const appurl = AppUrlClient('TOKEN');
const base64EncodedImage = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=';
async function getShortedUrl(url, base64EncodedImage, props) {
let result;
try {
result = await appurl.shorten(url, base64EncodedImage);
} catch (err) {
throw err;
}
return result;
}
getShortenedUrl('https://google.com', base64EncodedImage, {
appName: 'My App',
ogDescription: 'This is my amazing app!'
});
We are proud of the products we are making! If you have any questions please don't hesitate to reach out to AppURL Support.
FAQs
Official AppURL API Library
The npm package appurl receives a total of 4 weekly downloads. As such, appurl popularity was classified as not popular.
We found that appurl 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.