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

intertext-splitlines

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intertext-splitlines - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

lib/main.js

@@ -103,3 +103,3 @@ (function() {

line = decode(me, me.collector);
if (!(me.skip_empty_last && line === '')) {
if (!(me.skip_empty_last && line.length === 0)) {
yield line;

@@ -106,0 +106,0 @@ }

{
"name": "intertext-splitlines",
"version": "1.1.0",
"version": "1.1.1",
"description": "split streaming buffers into neat, decoded lines of text",

@@ -5,0 +5,0 @@ "main": "lib/main.js",

@@ -26,3 +26,3 @@

In case you have one or more buffers with textual content, the simplest way to use InterText SplitLines
is to use the `splitlines()` method which will return a list of strings, each representing one line. To
is to use the `splitlines()` method which will return a list of strings, each representing one line:

@@ -43,3 +43,3 @@

# Now we can
# Now that we have a number of buffers, let's split them into text lines:
SL = require 'intertext-splitlines'

@@ -116,7 +116,12 @@ lines = SL.splitlines buffers

* publish v1.1.0
* [X] fix treatment of last line when emitting buffers
* publish v1.1.1
---------------------------------------------------------------------
* [ ] implement `encoding`
* [ ] make keeping of newlines configurable
* [ ] make sure all relevant line ending conventions are properly honored
* [ ] allow custom line splitter

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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