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

bufferfromfile

Package Overview
Dependencies
Maintainers
1
Versions
354
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bufferfromfile - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

7

package.json
{
"name": "bufferfromfile",
"version": "0.4.4",
"version": "0.4.5",
"license": "MIT",

@@ -37,9 +37,10 @@ "description": "Module in JavaScript providing convenient means for using files as standard ArrayBuffer making mmap behind the scene.",

"ArrayBuffer",
"ArrayBufferFile",
"Buffer from file",
"ArrayBuffer from file",
"TypedBuffer from file",
"Nodejs buffer from file",
"mmap",
"mmap file"
"mmap file",
"zero copy"
]
}
# BufferFromFile
Module in JavaScript providing convenient means for using files as buffer making mmap behind the scene.
Module in JavaScript providing convenient means for using files as standard ArrayBuffer making mmap behind the scene.
BufferFromFile uses mmap to map file from hard drive to memory returning ArrayBuffer or TypedBuffer which can be manipulated just like ordinary buffer.
mmap() creates a new mapping in the virtual address space of the calling process.
During mmap operation all performance issues addressed operation system, so it's nearly fastest way to get data from / store on hard drive in Java Script. This method of data access do zero copy, unlike others.
Just like [native](http://man7.org/linux/man-pages/man2/mmap.2.html) version of the routine BufferFromFile can accept ( protection ), ( flags ), ( offset ), ( size ) and even ( advise ) parameters each of which has default value.
BufferFromFIle works on Windows, OSX, Lynux other Unix-like systems.
This module doesn't depend of NaN and deprecated versions of Nodejs.
Just like [native](http://man7.org/linux/man-pages/man2/mmap.2.html) version of the routine BufferFromFile accept ( protection ), ( flags ), ( offset ), ( size ) and even ( advise ) parameters each of which has default value so no need to pass the implicitly.
BufferFromFIle works on Windows, OSX, Linux and other Unix-like systems.
The module doesn't depend of module nan and does not support deprecated versions of Nodejs.
The module can convert a file to standard ArrayBuffer or any kind of TypedBuffer or even deprecated Nodejs Buffer.
### Usage:

@@ -81,2 +83,1 @@

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