1.0.3 • Published 2 years ago

shrtfly v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

shrtfly - Url Shortner Unofficial Package

What's the .env variables?

  • Two .env required, one is optional
  • You can also refer .env Example
    SHRTFLY_KEY=YOUR_API_KEY
    //This must be added in shrtfly.com account
    SHRTFLY_ALIAS=youralias.com
  • You can create api key at Shrtfly - URL Shortner

How to Use?

  • Install package using Inline npm i shrtfly
  • Import package import {shortUrl} from "shrtfly"
  • Use it Like
    const longUrl = 'http://yourdomain.com'
    const url = shortUrl(longUrl)
  • Done