Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

brevity

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brevity - npm Package Compare versions

Comparing version 0.2.6 to 0.2.8

4

brevity.js

@@ -166,3 +166,3 @@ (function(exports) {

if (format == 'article' && permalink) {
if (format.indexOf('article') !== -1 && permalink) {
citationTokens.push(makeToken('text', ': ', true));

@@ -179,3 +179,3 @@ citationTokens.push(makeToken('link', permalink, true));

if (format == 'note+media') {
if (format.indexOf('media') !== -1) {
targetLength -= linkLength + 1; // 23 characters + a space

@@ -182,0 +182,0 @@ }

{
"name": "brevity",
"version": "0.2.6",
"version": "0.2.8",
"description": "A small utility to shorten posts to an acceptable tweet-length summary.",

@@ -5,0 +5,0 @@ "main": "brevity.js",

@@ -104,2 +104,8 @@ {

{
"expected": "The Article Title is Longer Than Will Fit in Just One Single Tweet, and It Also Contains A\u2026 https://example.org/article",
"permalink": "https://example.org/article",
"format": "article+media",
"text": "The Article Title is Longer Than Will Fit in Just One Single Tweet, and It Also Contains A Photo Which Makes Things Even More Complicated"
},
{
"text": "It needs evaluation, so let the games begin. A heinous crime, a show of force, a murder would be nice of course. Bad Horse! Bad Horse!",

@@ -109,4 +115,14 @@ "expected": "It needs evaluation, so let the games begin. A heinous crime, a show of force, a murder\u2026 http://example.com/badhorse",

"format": "note+media"
},
{
"text": "I wrote some words about why I migrated away from Gitlab and Bitbucket to Gogs.io: https://aaronparecki.com/2016/02/13/18/ #ownyourdata #indieweb",
"expected": "I wrote some words about why I migrated away from Gitlab and Bitbucket to Gogs.io: https://aaronparecki.com/2016/02/13/18/ #ownyourdata #indieweb",
"permalink": "https://aaronparecki.com/2016/02/13/19/"
},
{
"format": "note+media",
"text": "schon nach 40 minuten fast 20 mal so viele leser per #instantarticles gehabt, wie in 6 monaten per #amphtml-artikeln.",
"expected": "schon nach 40 minuten fast 20 mal so viele leser per #instantarticles gehabt, wie in 6 monaten per\u2026"
}
]
}
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