Socket
Socket
Sign inDemoInstall

buffer-concat-limit

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    buffer-concat-limit

Helper method to concat 2 buffers with a tail limit


Version published
Weekly downloads
4
increased by300%
Maintainers
1
Install size
6.62 kB
Created
Weekly downloads
 

Readme

Source

buffer-concat-limit

Simple helper method for Node.js to concatinate 2 buffers with a tail limit.

var bufferConcatLimit = require("buffer-concat-limit");

bufferConcatLimit(bufferOne, bufferTwo[, limit])

Concatinates bufferOne with bufferTwo and returns the resulting buffer. If limit is greater than 0, the resulting buffer will be limited to the last limit bytes after concatination.

Note: bufferTwo can also be a string.

Keywords

FAQs

Last updated on 16 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc