snapany
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

SnapAny

A JavaScript library for parsing shared links from popular content-sharing platforms into direct image and video URLs, based on the service provided by SnapAny.

Installation

You can install snapany via npm:

npm install snapany

Usage

Import the parse function into your JavaScript or TypeScript file:

You can import the library using import:

import { parse } from 'snapany';

Or using require:

const { parse } = require('snapany');

Now, you can receive the parsed data as a Promise by calling the parse function with the URL:

const result = await parse(url);
console.log(result);

Package Sidebar

Install

npm i snapany

Weekly Downloads

3

Version

1.1.6

License

MIT

Unpacked Size

18.9 kB

Total Files

6

Last publish

Collaborators

  • make17better