Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README and package.json for node-mmap v0.0.2.

  • Loading branch information...
commit 69f28180a18541ea03ec848456727eeadaf1caff 1 parent e10fb5d
@bnoordhuis authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  README.md
  2. +3 −3 package.json
View
2  README.md
@@ -48,7 +48,7 @@ Map a file into memory:
fs = require('fs'), mmap = require('mmap');
fd = fs.openSync('/path/to/file', 'r');
size = fs.fstatSync(fd).size;
- buffer = new mmap.Buffer(size, mmap.PROT_READ, mmap.MAP_SHARED, fd, 0);
+ buffer = mmap.map(size, mmap.PROT_READ, mmap.MAP_SHARED, fd, 0);
// calculate faux checksum
var checksum = 0;
for (var i = 0; i < buffer.length; i++) {
View
6 package.json
@@ -1,10 +1,10 @@
{
"name": "mmap",
- "version": "0.0.1",
+ "version": "0.0.2",
"author": "Ben Noordhuis",
"description": "mmap(2) bindings for node.js",
"homepage": "https://github.com/bnoordhuis/node-mmap",
- "engines": { "node": ">=0.2.0" },
+ "engines": { "node": ">=0.4.0" },
"modules": {
"index": "./build/default/mmap"
},
@@ -14,6 +14,6 @@
},
"repository": {
"type": "git",
- "url": "http://github.com/bnoordhuis/node-mmap.git"
+ "url": "https://github.com/bnoordhuis/node-mmap.git"
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.