{
	"name": "level-ws",
	"versions": {
		"0.0.0": {
			"name": "level-ws",
			"description": "A basic WriteStream implementation for LevelUP",
			"version": "0.0.0",
			"contributors": [
				{
					"name": "Rod Vagg",
					"email": "r@va.gg",
					"url": "https://github.com/rvagg"
				},
				{
					"name": "John Chesley",
					"email": "john@chesl.es",
					"url": "https://github.com/chesles/"
				},
				{
					"name": "Jake Verbaten",
					"email": "raynos2@gmail.com",
					"url": "https://github.com/raynos"
				},
				{
					"name": "Dominic Tarr",
					"email": "dominic.tarr@gmail.com",
					"url": "https://github.com/dominictarr"
				},
				{
					"name": "Max Ogden",
					"email": "max@maxogden.com",
					"url": "https://github.com/maxogden"
				},
				{
					"name": "Lars-Magnus Skog",
					"email": "lars.magnus.skog@gmail.com",
					"url": "https://github.com/ralphtheninja"
				},
				{
					"name": "David Björklund",
					"email": "david.bjorklund@gmail.com",
					"url": "https://github.com/kesla"
				},
				{
					"name": "Julian Gruber",
					"email": "julian@juliangruber.com",
					"url": "https://github.com/juliangruber"
				},
				{
					"name": "Paolo Fragomeni",
					"email": "paolo@async.ly",
					"url": "https://github.com/hij1nx"
				},
				{
					"name": "Anton Whalley",
					"email": "anton.whalley@nearform.com",
					"url": "https://github.com/No9"
				},
				{
					"name": "Matteo Collina",
					"email": "matteo.collina@gmail.com",
					"url": "https://github.com/mcollina"
				},
				{
					"name": "Pedro Teixeira",
					"email": "pedro.teixeira@gmail.com",
					"url": "https://github.com/pgte"
				},
				{
					"name": "James Halliday",
					"email": "mail@substack.net",
					"url": "https://github.com/substack"
				}
			],
			"repository": {
				"type": "git",
				"url": "https://github.com/Level/level-ws.git"
			},
			"homepage": "https://github.com/Level/level-ws",
			"keywords": [
				"leveldb",
				"stream",
				"levelup"
			],
			"main": "level-ws.js",
			"dependencies": {
				"readable-stream": "~1.0.15",
				"xtend": "~2.1.1"
			},
			"devDependencies": {
				"tape": "*",
				"level": "*",
				"after": "*",
				"rimraf": "*"
			},
			"scripts": {
				"test": "node test.js"
			},
			"license": "MIT",
			"bugs": {
				"url": "https://github.com/Level/level-ws/issues"
			},
			"_id": "level-ws@0.0.0",
			"dist": {
				"shasum": "372e512177924a00424b0b43aef2bb42496d228b",
				"tarball": "https://registry.npmjs.org/level-ws/-/level-ws-0.0.0.tgz"
			},
			"_from": ".",
			"_npmVersion": "1.3.11",
			"_npmUser": {
				"name": "rvagg",
				"email": "rod@vagg.org"
			},
			"maintainers": [
				{
					"name": "rvagg",
					"email": "rod@vagg.org"
				}
			],
			"directories": {}
		},
		"0.0.1": {
			"name": "level-ws",
			"description": "A basic WriteStream implementation for LevelUP",
			"version": "0.0.1",
			"contributors": [
				{
					"name": "Rod Vagg",
					"email": "r@va.gg",
					"url": "https://github.com/rvagg"
				},
				{
					"name": "John Chesley",
					"email": "john@chesl.es",
					"url": "https://github.com/chesles/"
				},
				{
					"name": "Jake Verbaten",
					"email": "raynos2@gmail.com",
					"url": "https://github.com/raynos"
				},
				{
					"name": "Dominic Tarr",
					"email": "dominic.tarr@gmail.com",
					"url": "https://github.com/dominictarr"
				},
				{
					"name": "Max Ogden",
					"email": "max@maxogden.com",
					"url": "https://github.com/maxogden"
				},
				{
					"name": "Lars-Magnus Skog",
					"email": "ralphtheninja@riseup.net",
					"url": "https://github.com/ralphtheninja"
				},
				{
					"name": "David Björklund",
					"email": "david.bjorklund@gmail.com",
					"url": "https://github.com/kesla"
				},
				{
					"name": "Julian Gruber",
					"email": "julian@juliangruber.com",
					"url": "https://github.com/juliangruber"
				},
				{
					"name": "Paolo Fragomeni",
					"email": "paolo@async.ly",
					"url": "https://github.com/hij1nx"
				},
				{
					"name": "Anton Whalley",
					"email": "anton.whalley@nearform.com",
					"url": "https://github.com/No9"
				},
				{
					"name": "Matteo Collina",
					"email": "matteo.collina@gmail.com",
					"url": "https://github.com/mcollina"
				},
				{
					"name": "Pedro Teixeira",
					"email": "pedro.teixeira@gmail.com",
					"url": "https://github.com/pgte"
				},
				{
					"name": "James Halliday",
					"email": "mail@substack.net",
					"url": "https://github.com/substack"
				}
			],
			"repository": {
				"type": "git",
				"url": "git+https://github.com/Level/level-ws.git"
			},
			"homepage": "https://github.com/Level/level-ws",
			"keywords": [
				"leveldb",
				"stream",
				"levelup"
			],
			"main": "level-ws.js",
			"dependencies": {
				"readable-stream": "~2.0.6",
				"xtend": "~2.1.1"
			},
			"devDependencies": {
				"tape": "*",
				"level": "*",
				"after": "*",
				"rimraf": "*"
			},
			"scripts": {
				"test": "node test.js"
			},
			"license": "MIT",
			"gitHead": "2a8e1bb818ceaf17576401bf2e49c2647ed6cf15",
			"bugs": {
				"url": "https://github.com/Level/level-ws/issues"
			},
			"_id": "level-ws@0.0.1",
			"_shasum": "6826c224d2ff6a064adc3732b85df2e9464d28ea",
			"_from": ".",
			"_npmVersion": "3.3.12",
			"_nodeVersion": "5.4.1",
			"_npmUser": {
				"name": "juliangruber",
				"email": "julian@juliangruber.com"
			},
			"dist": {
				"shasum": "6826c224d2ff6a064adc3732b85df2e9464d28ea",
				"tarball": "https://registry.npmjs.org/level-ws/-/level-ws-0.0.1.tgz"
			},
			"maintainers": [
				{
					"name": "juliangruber",
					"email": "julian@juliangruber.com"
				},
				{
					"name": "ralphtheninja",
					"email": "ralphtheninja@riseup.net"
				},
				{
					"name": "rvagg",
					"email": "rod@vagg.org"
				}
			],
			"_npmOperationalInternal": {
				"host": "packages-13-west.internal.npmjs.com",
				"tmp": "tmp/level-ws-0.0.1.tgz_1458071710073_0.4518034884240478"
			},
			"directories": {}
		},
		"0.1.0": {
			"name": "level-ws",
			"description": "A basic WriteStream implementation for LevelUP",
			"version": "0.1.0",
			"contributors": [
				{
					"name": "Rod Vagg",
					"email": "r@va.gg",
					"url": "https://github.com/rvagg"
				},
				{
					"name": "John Chesley",
					"email": "john@chesl.es",
					"url": "https://github.com/chesles/"
				},
				{
					"name": "Jake Verbaten",
					"email": "raynos2@gmail.com",
					"url": "https://github.com/raynos"
				},
				{
					"name": "Dominic Tarr",
					"email": "dominic.tarr@gmail.com",
					"url": "https://github.com/dominictarr"
				},
				{
					"name": "Max Ogden",
					"email": "max@maxogden.com",
					"url": "https://github.com/maxogden"
				},
				{
					"name": "Lars-Magnus Skog",
					"email": "ralphtheninja@riseup.net",
					"url": "https://github.com/ralphtheninja"
				},
				{
					"name": "David Björklund",
					"email": "david.bjorklund@gmail.com",
					"url": "https://github.com/kesla"
				},
				{
					"name": "Julian Gruber",
					"email": "julian@juliangruber.com",
					"url": "https://github.com/juliangruber"
				},
				{
					"name": "Paolo Fragomeni",
					"email": "paolo@async.ly",
					"url": "https://github.com/hij1nx"
				},
				{
					"name": "Anton Whalley",
					"email": "anton.whalley@nearform.com",
					"url": "https://github.com/No9"
				},
				{
					"name": "Matteo Collina",
					"email": "matteo.collina@gmail.com",
					"url": "https://github.com/mcollina"
				},
				{
					"name": "Pedro Teixeira",
					"email": "pedro.teixeira@gmail.com",
					"url": "https://github.com/pgte"
				},
				{
					"name": "James Halliday",
					"email": "mail@substack.net",
					"url": "https://github.com/substack"
				}
			],
			"repository": {
				"type": "git",
				"url": "git+https://github.com/Level/level-ws.git"
			},
			"homepage": "https://github.com/Level/level-ws",
			"keywords": [
				"leveldb",
				"stream",
				"levelup"
			],
			"main": "level-ws.js",
			"dependencies": {
				"readable-stream": "^2.2.8",
				"xtend": "^4.0.0"
			},
			"devDependencies": {
				"tape": "*",
				"level": "*",
				"after": "*",
				"rimraf": "*"
			},
			"scripts": {
				"test": "node test.js"
			},
			"license": "MIT",
			"gitHead": "1daea82f4ddfac364f896fd681ae27c3271be295",
			"bugs": {
				"url": "https://github.com/Level/level-ws/issues"
			},
			"_id": "level-ws@0.1.0",
			"_shasum": "9728f02f3e7f34607f05010c1e4a83242e90b0b2",
			"_from": ".",
			"_npmVersion": "4.0.5",
			"_nodeVersion": "7.4.0",
			"_npmUser": {
				"name": "ralphtheninja",
				"email": "ralphtheninja@riseup.net"
			},
			"dist": {
				"shasum": "9728f02f3e7f34607f05010c1e4a83242e90b0b2",
				"tarball": "https://registry.npmjs.org/level-ws/-/level-ws-0.1.0.tgz"
			},
			"maintainers": [
				{
					"name": "juliangruber",
					"email": "julian@juliangruber.com"
				},
				{
					"name": "ralphtheninja",
					"email": "ralphtheninja@riseup.net"
				},
				{
					"name": "rvagg",
					"email": "rod@vagg.org"
				}
			],
			"_npmOperationalInternal": {
				"host": "packages-18-east.internal.npmjs.com",
				"tmp": "tmp/level-ws-0.1.0.tgz_1491579294813_0.9250076168682426"
			},
			"directories": {}
		},
		"1.0.0": {
			"name": "level-ws",
			"description": "A basic WriteStream implementation for LevelUP",
			"version": "1.0.0",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/Level/level-ws.git"
			},
			"homepage": "https://github.com/Level/level-ws",
			"keywords": [
				"leveldb",
				"stream",
				"levelup"
			],
			"main": "level-ws.js",
			"dependencies": {
				"inherits": "^2.0.3",
				"readable-stream": "^2.2.8",
				"xtend": "^4.0.1"
			},
			"devDependencies": {
				"coveralls": "~3.0.1",
				"level": "^4.0.0",
				"level-concat-iterator": "^2.0.0",
				"nyc": "~12.0.2",
				"secret-event-listener": "~1.0.0",
				"standard": "^11.0.1",
				"tape": "^4.9.0",
				"tempy": "^0.2.1"
			},
			"scripts": {
				"test": "standard && nyc node test.js",
				"coverage": "nyc report --reporter=text-lcov | coveralls"
			},
			"license": "MIT",
			"engines": {
				"node": ">=6"
			},
			"gitHead": "3e2bcab3c5470c71d692629aea8731c3b067d461",
			"bugs": {
				"url": "https://github.com/Level/level-ws/issues"
			},
			"_id": "level-ws@1.0.0",
			"_npmVersion": "6.1.0",
			"_nodeVersion": "10.5.0",
			"_npmUser": {
				"name": "ralphtheninja",
				"email": "ralphtheninja@riseup.net"
			},
			"dist": {
				"integrity": "sha512-RXEfCmkd6WWFlArh3X8ONvQPm8jNpfA0s/36M4QzLqrLEIt1iJE9WBHLZ5vZJK6haMjJPJGJCQWfjMNnRcq/9Q==",
				"shasum": "19a22d2d4ac57b18cc7c6ecc4bd23d899d8f603b",
				"tarball": "https://registry.npmjs.org/level-ws/-/level-ws-1.0.0.tgz",
				"fileCount": 9,
				"unpackedSize": 30037,
				"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbN/A8CRA9TVsSAnZWagAA3EYQAJuzN1Ff7tvlsqcDv2Xk\n31LJ69R8mdD2vROuFHd/JGdy1gdgSuME0sUD3HMM7gBsNu35Sf5TJOdPxLZt\nL9RtXkdf9K8/0or3NtNy1wXHiuFMZK5b/wNAyB1X87j/jcZ2AOWKquCwpFxi\n8gHAg/zvrfd3AeKsrM3uxAWf00D7WztLmlb8l5j3E20lPKMYfVDwQ/kqHwJh\n+Z+0N+cdRA9cJrHjvnjn1mEzfT0R3mKRK3YMqMRZNW94ZbBCWCy03fsmpnQ4\nyzdiRr+daYXm6ZXmdKkkc57OebN6K39/qFGzYvxI8LcF15iU1qD61vy2XjiC\nqXCplrsd6yZgEDIr9+lRl20VEt+BrDS/g2r9beWf9QK0MjBH3BeX44Ck4c8g\nk2LXSJGSN633EO9dhg2i/Cn7iDjw+5lfohW+zXBkh/ARoNxu2MVBe94a/47Z\niRIWKotku2t/TV6WExy5DwZ28bC0xhqXXvWSlT9g5QNp/Cm9UrMeEVaOnU4O\n8SK0r5bZQN9RtifFOEUigo18ybVj2unWZ+hXH29la3Iz20D8U/a1+a+biPA0\nSiVS2U4Oqe4X9GJMFRubYLAZaHRyOcAh5ZpZqkohaagZ1w5AE/hrFQ822FBm\nTI+G6ZD2xBoSN2655q7N5XSaRlx/YeLyiP0aeGezP69k79cjN9gH2HfyBL32\n/C/Q\r\n=YmLN\r\n-----END PGP SIGNATURE-----\r\n"
			},
			"maintainers": [
				{
					"email": "julian@juliangruber.com",
					"name": "juliangruber"
				},
				{
					"email": "ralphtheninja@riseup.net",
					"name": "ralphtheninja"
				},
				{
					"email": "r@va.gg",
					"name": "rvagg"
				},
				{
					"email": "dev@vincentweevers.nl",
					"name": "vweevers"
				}
			],
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/level-ws_1.0.0_1530392636660_0.6933303311859591"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		},
		"2.0.0": {
			"name": "level-ws",
			"version": "2.0.0",
			"description": "A basic WriteStream implementation for LevelUP",
			"license": "MIT",
			"main": "level-ws.js",
			"scripts": {
				"test": "standard && hallmark && nyc node test.js",
				"coverage": "nyc report --reporter=text-lcov | coveralls",
				"hallmark": "hallmark --fix",
				"dependency-check": "dependency-check . test.js",
				"prepublishOnly": "npm run dependency-check"
			},
			"dependencies": {
				"inherits": "^2.0.3",
				"readable-stream": "^3.1.0",
				"xtend": "^4.0.1"
			},
			"devDependencies": {
				"coveralls": "^3.0.1",
				"dependency-check": "^3.3.0",
				"hallmark": "^0.1.0",
				"level": "^5.0.1",
				"level-community": "^3.0.0",
				"level-concat-iterator": "^2.0.0",
				"nyc": "^13.2.0",
				"secret-event-listener": "^1.0.0",
				"standard": "^12.0.0",
				"tape": "^4.9.0",
				"tempy": "^0.2.1"
			},
			"hallmark": {
				"community": "level-community",
				"ignore": [
					"CONTRIBUTORS.md"
				]
			},
			"repository": {
				"type": "git",
				"url": "git+https://github.com/Level/level-ws.git"
			},
			"homepage": "https://github.com/Level/level-ws",
			"keywords": [
				"level",
				"leveldb",
				"stream",
				"levelup"
			],
			"engines": {
				"node": ">=6"
			},
			"gitHead": "55880557e10e2e5a6ed4d85edac36c122a4fa3a3",
			"bugs": {
				"url": "https://github.com/Level/level-ws/issues"
			},
			"_id": "level-ws@2.0.0",
			"_npmVersion": "6.4.1",
			"_nodeVersion": "10.14.1",
			"_npmUser": {
				"name": "vweevers",
				"email": "dev@vincentweevers.nl"
			},
			"maintainers": [
				{
					"email": "julian@juliangruber.com",
					"name": "juliangruber"
				},
				{
					"email": "ralphtheninja@riseup.net",
					"name": "ralphtheninja"
				},
				{
					"email": "r@va.gg",
					"name": "rvagg"
				},
				{
					"email": "dev@vincentweevers.nl",
					"name": "vweevers"
				}
			],
			"dist": {
				"integrity": "sha512-1iv7VXx0G9ec1isqQZ7y5LmoZo/ewAsyDHNA8EFDW5hqH2Kqovm33nSFkSdnLLAK+I5FlT+lo5Cw9itGe+CpQA==",
				"shasum": "207a07bcd0164a0ec5d62c304b4615c54436d339",
				"tarball": "https://registry.npmjs.org/level-ws/-/level-ws-2.0.0.tgz",
				"fileCount": 9,
				"unpackedSize": 34473,
				"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcn7jVCRA9TVsSAnZWagAAEQwP/R5kKVzvDdr3H8nm1lnw\n1eZpyaiWM2EWHvJhVHHDvTruHet056eunPrTiFCzCREHippbhU/qV5NuvqIB\nsyo5uRussS41sup6daKWUk1CVwiPmh3PJ0dcOVG0o7J4Yqetyt5TZukshl63\ne5e/EbS75WqDYTr/2aaxX7FDP5VlrktYZUouF65/oughmjPXbcbmOCWsJIyc\nZhl581q9FId7L8vdEQgTywy4dpQjexiNAs56G+lfF4wMXbyMl3Kzsaixk4Lr\nKZ3Yd+qebm+/kZBi7jC4x0MMDDU683LBLdbaAJh2h/+uKcDyxmep6fyyRaGC\nH4wf+7Y/eOBwi8Hfzt36fQ0MPxeqF0iaQO8at6/n9vxzBbWntubAzd/UcX6u\npwhQtEU6zC7qEum3+P+KoxZObYWWRwgBjBYzyynABCZbqRjVc1UW075/SSYg\nRv3e1lSO29lJhflHEInZOp/U88L+1xMoor1KRXgqiqgIDctX9eIMhUeExS10\nRckGWZNDqVvWr2kWV7JyLKk9Py4od3oRuGKEICsRM5CI4ATQ9BnXhWDKuJd3\nxpXRaSvI7KnhCKJZWCwNR+S4gjl8U5RD0dAFk9b28UckApKBLz11Ra39dGLK\nXduLik80qQ2DIwHItWczc9svYKZ7wFhbEys6bsykJnevOGaFm238smEGghsa\nO49s\r\n=N5Kc\r\n-----END PGP SIGNATURE-----\r\n"
			},
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/level-ws_2.0.0_1553971413278_0.8920108894439835"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		}
	},
	"time": {
		"modified": "2019-04-07T17:05:16.646Z",
		"created": "2013-10-12T09:07:19.755Z",
		"0.0.0": "2013-10-12T09:07:24.763Z",
		"0.0.1": "2016-03-15T19:55:12.265Z",
		"0.1.0": "2017-04-07T15:34:55.500Z",
		"1.0.0": "2018-06-30T21:03:56.706Z",
		"2.0.0": "2019-03-30T18:43:33.498Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "2.0.0"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"41c0b56cef1aac10acd412cc8aa5281f\"",
			"fetched": 1602009398741
		}
	},
	"_distfiles": {
		"level-ws-0.0.0.tgz": {
			"url": "https://registry.npmjs.org/level-ws/-/level-ws-0.0.0.tgz",
			"sha": "372e512177924a00424b0b43aef2bb42496d228b",
			"registry": "npmjs"
		},
		"level-ws-0.0.1.tgz": {
			"url": "https://registry.npmjs.org/level-ws/-/level-ws-0.0.1.tgz",
			"sha": "6826c224d2ff6a064adc3732b85df2e9464d28ea",
			"registry": "npmjs"
		},
		"level-ws-0.1.0.tgz": {
			"url": "https://registry.npmjs.org/level-ws/-/level-ws-0.1.0.tgz",
			"sha": "9728f02f3e7f34607f05010c1e4a83242e90b0b2",
			"registry": "npmjs"
		},
		"level-ws-1.0.0.tgz": {
			"url": "https://registry.npmjs.org/level-ws/-/level-ws-1.0.0.tgz",
			"sha": "19a22d2d4ac57b18cc7c6ecc4bd23d899d8f603b",
			"registry": "npmjs"
		},
		"level-ws-2.0.0.tgz": {
			"url": "https://registry.npmjs.org/level-ws/-/level-ws-2.0.0.tgz",
			"sha": "207a07bcd0164a0ec5d62c304b4615c54436d339",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"level-ws-0.0.0.tgz": {
			"shasum": "372e512177924a00424b0b43aef2bb42496d228b"
		}
	},
	"_rev": "21-49a59e471b6d1232",
	"_id": "level-ws",
	"readme": "# level-ws\n\n> A basic WriteStream implementation for [levelup](https://github.com/Level/levelup)\n\n[![level badge][level-badge]](https://github.com/Level/awesome)\n[![npm](https://img.shields.io/npm/v/level-ws.svg?label=&logo=npm)](https://www.npmjs.com/package/level-ws)\n[![Node version](https://img.shields.io/node/v/level-ws.svg)](https://www.npmjs.com/package/level-ws)\n[![Travis](https://img.shields.io/travis/Level/level-ws.svg?logo=travis&label=)](https://travis-ci.org/Level/level-ws)\n[![npm](https://img.shields.io/npm/dm/level-ws.svg?label=dl)](https://www.npmjs.com/package/level-ws)\n[![Coverage Status](https://coveralls.io/repos/github/Level/level-ws/badge.svg)](https://coveralls.io/github/Level/level-ws)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers)\n[![Sponsors on Open Collective](https://opencollective.com/level/sponsors/badge.svg?color=orange)](#sponsors)\n\n`level-ws` provides the most basic general-case WriteStream for `levelup`. It was extracted from the core `levelup` at version 0.18.0.\n\n`level-ws` is not a high-performance WriteStream. If your benchmarking shows that your particular usage pattern and data types do not perform well with this WriteStream then you should try one of the alternative WriteStreams available for `levelup` that are optimised for different use-cases.\n\n**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md).\n\n## Usage\n\n```js\nvar level = require('level')\nvar WriteStream = require('level-ws')\n\nvar db = level('/path/to/db')\nvar ws = WriteStream(db) // ...\n```\n\n## API\n\n### `ws = WriteStream(db[, options])`\n\nCreates a [Writable](https://nodejs.org/dist/latest-v8.x/docs/api/stream.html#stream_class_stream_writable) stream which operates in **objectMode**, accepting objects with `'key'` and `'value'` pairs on its `write()` method.\n\nThe optional `options` argument may contain:\n\n- `type` _(string, default: `'put'`)_: Default batch operation for missing `type` property during `ws.write()`.\n\nThe WriteStream will buffer writes and submit them as a `batch()` operations where writes occur _within the same tick_.\n\n```js\nvar ws = WriteStream(db)\n\nws.on('error', function (err) {\n  console.log('Oh my!', err)\n})\nws.on('close', function () {\n  console.log('Stream closed')\n})\n\nws.write({ key: 'name', value: 'Yuri Irsenovich Kim' })\nws.write({ key: 'dob', value: '16 February 1941' })\nws.write({ key: 'spouse', value: 'Kim Young-sook' })\nws.write({ key: 'occupation', value: 'Clown' })\nws.end()\n```\n\nThe standard `write()`, `end()` and `destroy()` methods are implemented on the WriteStream. `'drain'`, `'error'`, `'close'` and `'pipe'` events are emitted.\n\nYou can specify encodings for individual entries by setting `.keyEncoding` and/or `.valueEncoding`:\n\n```js\nwriteStream.write({\n  key: new Buffer([1, 2, 3]),\n  value: { some: 'json' },\n  keyEncoding: 'binary',\n  valueEncoding : 'json'\n})\n```\n\nIf individual `write()` operations are performed with a `'type'` property of `'del'`, they will be passed on as `'del'` operations to the batch.\n\n```js\nvar ws = WriteStream(db)\n\nws.on('error', function (err) {\n  console.log('Oh my!', err)\n})\nws.on('close', function () {\n  console.log('Stream closed')\n})\n\nws.write({ type: 'del', key: 'name' })\nws.write({ type: 'del', key: 'dob' })\nws.write({ type: 'put', key: 'spouse' })\nws.write({ type: 'del', key: 'occupation' })\nws.end()\n```\n\nIf the _WriteStream_ is created with a `'type'` option of `'del'`, all `write()` operations will be interpreted as `'del'`, unless explicitly specified as `'put'`.\n\n```js\nvar ws = WriteStream(db, { type: 'del' })\n\nws.on('error', function (err) {\n  console.log('Oh my!', err)\n})\nws.on('close', function () {\n  console.log('Stream closed')\n})\n\nws.write({ key: 'name' })\nws.write({ key: 'dob' })\n// but it can be overridden\nws.write({ type: 'put', key: 'spouse', value: 'Ri Sol-ju' })\nws.write({ key: 'occupation' })\nws.end()\n```\n\n## Contributing\n\n[`Level/level-ws`](https://github.com/Level/level-ws) is an **OPEN Open Source Project**. This means that:\n\n> Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.\n\nSee the [Contribution Guide](https://github.com/Level/community/blob/master/CONTRIBUTING.md) for more details.\n\n## Donate\n\nTo sustain [`Level`](https://github.com/Level) and its activities, become a backer or sponsor on [Open Collective](https://opencollective.com/level). Your logo or avatar will be displayed on our 28+ [GitHub repositories](https://github.com/Level), [npm](https://www.npmjs.com/) packages and (soon) [our website](http://leveldb.org). 💖\n\n### Backers\n\n[![Open Collective backers](https://opencollective.com/level/backers.svg?width=890)](https://opencollective.com/level)\n\n### Sponsors\n\n[![Open Collective sponsors](https://opencollective.com/level/sponsors.svg?width=890)](https://opencollective.com/level)\n\n## License\n\n[MIT](LICENSE.md) © 2012-present [Contributors](CONTRIBUTORS.md).\n\n[level-badge]: http://leveldb.org/img/badge.svg"
}