truncate-url - Truncate a URL to a specific length

  •        267

Truncate a URL to a specific length

https://github.com/sindresorhus/truncate-url

Tags
Implementation
License
Platform

   




Related Projects

Cutter.js - Truncate HTML code to limit its length by number of words without losing markup.

  •    Javascript

Truncate HTML code to limit its length by number of words without losing markup.

trunk8 - jQuery Truncation Plugin

  •    Javascript

trunk8 is an intelligent text truncation extension to jQuery. When applied to a large block of text, trunk8 will cut off just enough text to prevent it from spilling over. Unlike conventional truncation that just limits the character length of text, trunk8 measures the content area for spill-over and intelligently chooses the text that best fits in the given space.

voca - The ultimate JavaScript string library

  •    Javascript

The Voca library offers helpful functions to make string manipulations comfortable: change case, trim, pad, slugify, latinise, sprintf'y, truncate, escape and much more. The modular design allows to load the entire library, or individual functions to minimize the application builds. The library is fully tested, well documented and long-term supported. Voca can be used in various environments.

url-parse - Small footprint URL parser that works seamlessly across Node

  •    Javascript

The url-parse method exposes two different API interfaces. The url interface that you know from Node.js and the new URL interface that is available in the latest browsers.In version 0.1 we moved from a DOM based parsing solution, using the <a> element, to a full Regular Expression solution. The main reason for this was to make the URL parser available in different JavaScript environments as you don't always have access to the DOM. An example of such environment is the Worker interface. The RegExp based solution didn't work well as it required a lot of lookups causing major problems in FireFox. In version 1.0.0 we ditched the RegExp based solution in favor of a pure string parsing solution which chops up the URL into smaller pieces. This module still has a really small footprint as it has been designed to be used on the client side.

HTML-Truncator - Wants to truncate an HTML string properly? This Ruby gem is for you.

  •    Ruby

Wants to truncate an HTML string properly? This Ruby gem is for you.


URI.JS - Javascript URL mutation library

  •    Javascript

URI.js is a javascript library for working with URLs. It offers a "jQuery-style" API (Fluent Interface, Method Chaining) to read and write all regular components and a number of convenience methods like .directory() and .authority(). URI.js offers simple, yet powerful ways of working with query string, has a number of URI-normalization functions and converts relative/absolute paths. While URI.js provides a jQuery plugin. URI.js itself does not rely on jQuery. You don't need jQuery to use URI.js

succinct - A tiny jQuery plugin for truncating multiple lines of text

  •    Javascript

Succinct shortens your text to a specified size, and then adds an ellipsis to the end. Specify the elements that you would like to truncate as a selector, and then set the size parameter to the amount you would like to see. For example, if you would like to truncate all elements with a specific class, ie. <p class="truncate"> to 120 characters...

query-string - Parse and stringify URL query strings

  •    Javascript

🔥 Want to strengthen your core JavaScript skills and master ES6? I would personally recommend this awesome ES6 course by Wes Bos. You might also like his React course.Parse a query string into an object. Leading ? or # are ignored, so you can pass location.search or location.hash directly.

nodejs-pool

  •    Javascript

It is critically important that your webserver does not truncate the /leafApi portion of the URL for the remoteShare daemon, or it will not function! Local pool servers DO use the remoteShare daemon, as this provides a buffer in case of an error with LMDB or another bug within the system, allowing shares and blocks to queue for submission as soon as the leafApi/remoteShare daemons are back up and responding with 200's. I've confirmed that the default server 16.04 installation has these requirements.

speakingurl - Generate a slug – transliteration with a lot of options

  •    Javascript

Generate a slug with a lot of options; create a so-called Semantic URL or 'Clean URL' or 'Pretty URL' or 'nice-looking URL' or 'Speaking URL' or 'user-friendly URL' or 'SEO-friendly URL' from a string. This module aims to transliterate the input string.

php-restclient - A generic REST API client for PHP

  •    PHP

headers - An associative array of HTTP headers and values to be included in every request. parameters - An associative array of URL or body parameters to be included in every request. curl_options - cURL options to apply to every request; anything defined here: https://secure.php.net/manual/en/function.curl-setopt.php. These will override any automatically generated values. build_indexed_queries (bool) - http_build_query automatically adds an array index to repeated parameters which is not desirable on most systems. Use this option to enable the default behavior. Defaults to FALSE. user_agent - User agent string to use in requests. base_url - URL to use for the base of each request. format - Format string is appended to resource on request (extension), and used to determine which decoder to use on response; a request URL like "api.twitter.com/1.1/statuses/user_timeline.json" would be expected to return well-formed JSON. format_regex - Pattern to extract format from response Content-Type header, used to determine which decoder to use on response. decoders - Associative array of format decoders. See "Direct Iteration and Response Decoding". username - Username to use for HTTP basic authentication. Requires password. password - Password to use for HTTP basic authentication. Requires username. url (string) - URL of the resource you are requesting. Will be prepended with the value of the base_url option, if it has been configured. Will be appended with the value of the format option, if it has been configured.

iOSPlot - Chart library for iOS

  •    Objective-C

Use gesture/tap to show the value label (or mild statistics) for a data point. Further break out colors for customization of background, x/y labels, and shadows. Allow legend labels to appear on either the right or left side of the chart (or not at all). Use the rendered string width of the legend labels to determine right/left side margin. If a legend string is significantly long (200% percentage of default margin width?), truncate or abbreviate it to X characters.

shortid - Short id generator. Url-friendly. Non-predictable. Cluster-compatible.

  •    Javascript

Amazingly short non-sequential url-friendly unique id generator. ShortId creates amazingly short non-sequential url-friendly unique ids. Perfect for url shorteners, MongoDB and Redis ids, and any other id users might see.

YOURLS - 🔗 Your Own URL Shortener

  •    PHP

YOURLS is a set of PHP scripts that will allow you to run Your Own URL Shortener. You'll have full control over your data, detailed stats, analytics, plugins, and more. It's free. To get started, check yourls.org! Learn more tweaks in the Wiki documentation.

escape_utils - Faster string escaping routines for your ruby apps

  •    C

For character encoding in 1.9, the output string's encoding is copied from the input string. It supports HTML, URL, URI and Javascript escaping/unescaping.

miniurl

  •    CSharp

Sample ASP.NET MVC application to show how to create URL shrink/snippet/etc and handling of shorten URLs.

Google URL Shortener API for .NET

  •    

Google URL Shortener API for .NET is a wrapper for the Google Project below: http://code.google.com/apis/urlshortener/v1/reference.html With Google URL Shortener API, you may shorten urls and get some analytics information about this. It's developer in C# 4.0 and VS20...

kutt - Free Modern URL Shortener.

  •    Javascript

Kutt is a modern URL shortener with support for custom domains. Shorten URLs, manage your links and view the click rate statistics. Contributions and bug reports are welcome.