Releases: jsuyog2/sequelize-shorten-url
Releases · jsuyog2/sequelize-shorten-url
Sequelize Shorten URL v1.0.9
Sequelize Shorten URL v1.0.9
What's New:
- Initial release of the
sequelize-shorten-url
package. - Features a URL shortening service with Sequelize integration.
- Allows users to create short URLs, retrieve original URLs, and track click counts.
- Includes utility functions to get statistics for shortened URLs.
Key Features:
- URL Shortening: Easily create shortened URLs and store them in your database.
- Click Tracking: Automatically increments click counts whenever a short URL is accessed.
- Statistics Retrieval: Retrieve stats on original URLs and click counts.
Installation:
npm i @jsuyog2/sequelize-shorten-url
Usage:
const sequelizeShortenUrl = require('@jsuyog2/sequelize-shorten-url');
const shortener = sequelizeShortenUrl(sequelizeInstance);
// Create short URL
shortener.createShortUrl('https://example.com');
// Retrieve original URL and increment click count
shortener.getOriginalUrl('shortUrlCode');
// Get URL statistics
shortener.getUrlStats('shortUrlCode');
Notes:
- Ensure that your Sequelize instance is properly configured before using this package.
Feel free to contribute or report issues on the GitHub repository.
Sequelize Shorten URL v1.0.8
Sequelize Shorten URL v1.0.8
What's New:
- Initial release of the
sequelize-shorten-url
package. - Features a URL shortening service with Sequelize integration.
- Allows users to create short URLs, retrieve original URLs, and track click counts.
- Includes utility functions to get statistics for shortened URLs.
Key Features:
- URL Shortening: Easily create shortened URLs and store them in your database.
- Click Tracking: Automatically increments click counts whenever a short URL is accessed.
- Statistics Retrieval: Retrieve stats on original URLs and click counts.
Installation:
npm i @jsuyog2/sequelize-shorten-url
Usage:
const sequelizeShortenUrl = require('@jsuyog2/sequelize-shorten-url');
const shortener = sequelizeShortenUrl(sequelizeInstance);
// Create short URL
shortener.createShortUrl('https://example.com');
// Retrieve original URL and increment click count
shortener.getOriginalUrl('shortUrlCode');
// Get URL statistics
shortener.getUrlStats('shortUrlCode');
Notes:
- Ensure that your Sequelize instance is properly configured before using this package.
Feel free to contribute or report issues on the GitHub repository.