New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-urlshortner

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-urlshortner

A lightweight URL shortener library for Node.js and browser applications. Easily shorten URLs using a customizable API endpoint with built-in validation and error handling

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-97.06%
Maintainers
0
Weekly downloads
 
Created
Source

URL Shortener Library

A lightweight and customizable URL shortener library for Node.js and browser applications. Shorten URLs effortlessly using your API endpoint with built-in validation and error handling.


Features

  • 📏 Validates URLs before sending requests.
  • 🔒 Secure and reliable with axios for API communication.
  • 🌍 Works seamlessly in Node.js, Reactjs, Nextjs and browser environments.

Installation

Install the package using npm & yarn:

npm install react-urlshortner

Example

import { URLShortener } from "react-urlshortner";

const shortener = new URLShortener();

shortener.shorten("https://longurl.com/some/path")
    .then(shortUrl => console.log("Shortened URL:", shortUrl))
    .catch(error => console.error("Failed to shorten URL:", error));

Support Us ☕

Maintaining and improving this project incurs server costs. If you find this library helpful, consider supporting us!

Donate for Server Cost and Support


Note:

When donating, please mention whether your contribution is intended for server costs or to support the developer. This helps us allocate resources effectively and prioritize improvements!

Keywords

FAQs

Package last updated on 25 Jan 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc