https://github.com/tradle/safedown
https://github.com/tradle/safedown
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tradle/safedown
- Owner: tradle
- Created: 2017-02-18T03:28:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T14:21:24.000Z (over 9 years ago)
- Last Synced: 2025-02-17T01:16:41.723Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# safedown
Wrapper for [leveldown](https://github.com/Level/leveldown) implementations to ensure `close()` doesn't cause segfaults due to pending operations. See ['./segfault.js'](https://github.com/tradle/safedown/blob/master/segfault.js) for an example of what this fixes.
## Usage
```js
var leveldown = require('safedown')(require('leveldown'))
// use leveldown as usual
```