{"id":11399,"date":"2014-01-30T12:08:56","date_gmt":"2014-01-30T06:38:56","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=11399"},"modified":"2014-02-03T12:09:32","modified_gmt":"2014-02-03T06:39:32","slug":"writable-streams-in-node-js","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/","title":{"rendered":"Writable Streams In Node.Js"},"content":{"rendered":"<p style=\"text-align: justify\" dir=\"ltr\">In my previous blog we discussed about \u201c<a title=\"Streams in node.js : Readable and Writable\" href=\"http:\/\/www.tothenew.com\/blog\/streams-in-node-js-readable-writable\/\">Readable Streams in Node.js<\/a>\u201d. Here we will be learning about the next part of stream which is, writable stream.<\/p>\n<p style=\"text-align: justify\">Writable stream is used to write data to a specific destination.<\/p>\n<p style=\"text-align: justify\" dir=\"ltr\">Basically its has two main method :<\/p>\n<ol style=\"text-align: justify\">\n<li>\n<p dir=\"ltr\">write.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\">end<\/p>\n<\/li>\n<\/ol>\n<p style=\"text-align: justify\"><strong>Write:<\/strong><br \/>\n<code>writable.write(chunk,[encoding],[callback])<\/code><\/p>\n<p style=\"text-align: justify\" dir=\"ltr\">This method is used to write the chunk of data to stream and call its corresponding callback after writing the data, if it is provided. Encoding is supplied if the chunk is a String.This method will return true if data is handled or ready to write more data.<\/p>\n<p style=\"text-align: justify\" dir=\"ltr\"><strong>End:<\/strong><\/p>\n<p style=\"text-align: justify\"><code>writable.end(chunk,[encoding],[callback])<\/code><\/p>\n<p style=\"text-align: justify\" dir=\"ltr\">This method is used to write last chunk of data on the stream and call its corresponding callback when it is finished writing. Finish event is attached with this callback. Encoding is supplied if the chunk is a String.<\/p>\n<p style=\"text-align: justify\"><strong>Lets take an example:<\/strong><\/p>\n<p style=\"text-align: justify\" dir=\"ltr\">In this example I will be writing my first name using write() and the calling end() with my last name.<\/p>\n<p>[js]<br \/>\nhttp.createServer(req,res){<br \/>\nres.write(\u201cSahil \u201d);<br \/>\nres.end(\u201cChitkara\u201d)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p style=\"text-align: justify\"><strong>Events:<\/strong><\/p>\n<ol style=\"text-align: justify\">\n<li>\n<p dir=\"ltr\"><strong>Drain<\/strong>: If writing data with writable.write(chunk) returns false, the drain event will indicate whether its is appropriate to write more data to stream.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\"><strong>Finish<\/strong>: This event is emitted when end() is called.<\/p>\n<\/li>\n<\/ol>\n<p style=\"text-align: justify\" dir=\"ltr\">Example<\/p>\n<p>[js]<br \/>\nhttp.createServer(req,res){<br \/>\nres.write(\u201cSahil \u201d);<br \/>\nres.end(\u201cChitkara\u201d);<br \/>\nres.on(\u2018finish\u2019\u2019,function(){<br \/>\nconsole.log(\u201cwriting data is now complete\u201d);<br \/>\n});<br \/>\n}<br \/>\n[\/js]<\/p>\n<ol style=\"text-align: justify\" start=\"3\">\n<li>\n<p dir=\"ltr\"><strong>Pipe<\/strong>: This event is emitted when pipe() is called on readable stream and adding writable stream to its destination.<\/p>\n<\/li>\n<\/ol>\n<p>[js]<br \/>\nvar fs= require(\u2018fs\u2019)<br \/>\nvar readable = fs.createReadStream(\u2018abc.txt\u2019);<br \/>\nvar writable=fs.createWriteStream(\u2018bcd.txt\u2019);<br \/>\nreadable.pipe(writable);<br \/>\n[\/js]<\/p>\n<ol style=\"text-align: justify\" start=\"4\">\n<li>\n<p dir=\"ltr\"><strong>Unpipe<\/strong>: This event is emitted when unpipe() is called on readable stream and adding writable stream to its destination.<\/p>\n<\/li>\n<\/ol>\n<p>[js]<br \/>\nvar fs= require(\u2018fs\u2019)<br \/>\nvar readable = fs.createReadStream(\u2018abc.txt\u2019);<br \/>\nvar writable=fs.createWriteStream(\u2018bcd.txt\u2019);<br \/>\nreadable.unpipe(writable);<br \/>\n[\/js]<\/p>\n<ol style=\"text-align: justify\" start=\"5\">\n<li>\n<p dir=\"ltr\"><strong>Error<\/strong>: Emitted when error occurs while writing and piping the data.<\/p>\n<\/li>\n<\/ol>\n<p>[js]<br \/>\nvar fs= require(\u2018fs\u2019)<br \/>\nvar readable = fs.createReadStream(\u2018abc.txt\u2019);<br \/>\nvar writable=fs.createWriteStream(\u2018bcd.txt\u2019);<br \/>\nreadable.pipe(writable);<br \/>\nwritable.on(\u2018error\u2019,function(err){<br \/>\nconsole.log(\u201cerror: \u201d+err);<br \/>\n});<br \/>\n[\/js]<\/p>\n<p style=\"text-align: justify\">General use case of writable streams in nodejs:<\/p>\n<ul style=\"text-align: justify\">\n<li>http request<\/li>\n<li>http response<\/li>\n<li>fs write streams<\/li>\n<li>tcp sockets<\/li>\n<li>child process<\/li>\n<\/ul>\n<p style=\"text-align: justify\" dir=\"ltr\">So, this was a brief \u00a0intro of \u00a0writable streams. Hope you&#8217;ve learned some good stuff here.<\/p>\n<p style=\"text-align: justify\" dir=\"ltr\">Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous blog we discussed about \u201cReadable Streams in Node.js\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the [&hellip;]<\/p>\n","protected":false},"author":66,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[1185],"tags":[55,1124,1298,1269,1299],"class_list":["post-11399","post","type-post","status-publish","format-standard","hentry","category-node-js-2","tag-javascript","tag-node-js","tag-pipe","tag-streams","tag-writable-streams"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In my previous blog we discussed about \u201cReadable Streams in Node.js\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sahil Chitkara\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Writable Streams In Node.Js | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In my previous blog we discussed about \u201cReadable Streams in Node.js\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Writable Streams In Node.Js | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In my previous blog we discussed about \u201cReadable Streams in Node.js\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#article\",\"name\":\"Writable Streams In Node.Js | TO THE NEW Blog\",\"headline\":\"Writable Streams In Node.Js\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2014-01-30T12:08:56+05:30\",\"dateModified\":\"2014-02-03T12:09:32+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#webpage\"},\"articleSection\":\"Node.js, javascript, node.js, pipe, Streams, Writable Streams\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"position\":2,\"name\":\"Node.js\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#listItem\",\"name\":\"Writable Streams In Node.Js\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#listItem\",\"position\":3,\"name\":\"Writable Streams In Node.Js\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/\",\"name\":\"Sahil Chitkara\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b91bdfc498b589781ffafd1e1add2085872ca7c745e54e167c93abc1853439f4?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Sahil Chitkara\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/\",\"name\":\"Writable Streams In Node.Js | TO THE NEW Blog\",\"description\":\"In my previous blog we discussed about \\u201cReadable Streams in Node.js\\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/writable-streams-in-node-js\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/#author\"},\"datePublished\":\"2014-01-30T12:08:56+05:30\",\"dateModified\":\"2014-02-03T12:09:32+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Writable Streams In Node.Js | TO THE NEW Blog","description":"In my previous blog we discussed about \u201cReadable Streams in Node.js\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the","canonical_url":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#article","name":"Writable Streams In Node.Js | TO THE NEW Blog","headline":"Writable Streams In Node.Js","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sahil\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2014-01-30T12:08:56+05:30","dateModified":"2014-02-03T12:09:32+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#webpage"},"articleSection":"Node.js, javascript, node.js, pipe, Streams, Writable Streams"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/node-js-2\/#listItem","position":2,"name":"Node.js","item":"https:\/\/www.tothenew.com\/blog\/category\/node-js-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#listItem","name":"Writable Streams In Node.Js"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#listItem","position":3,"name":"Writable Streams In Node.Js","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/sahil\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/sahil\/","name":"Sahil Chitkara","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b91bdfc498b589781ffafd1e1add2085872ca7c745e54e167c93abc1853439f4?s=96&d=mm&r=g","width":96,"height":96,"caption":"Sahil Chitkara"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/","name":"Writable Streams In Node.Js | TO THE NEW Blog","description":"In my previous blog we discussed about \u201cReadable Streams in Node.js\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sahil\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/sahil\/#author"},"datePublished":"2014-01-30T12:08:56+05:30","dateModified":"2014-02-03T12:09:32+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Writable Streams In Node.Js | TO THE NEW Blog","og:description":"In my previous blog we discussed about \u201cReadable Streams in Node.js\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the","og:url":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Writable Streams In Node.Js | TO THE NEW Blog","twitter:description":"In my previous blog we discussed about \u201cReadable Streams in Node.js\u201d. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"11399","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 08:06:02","updated":"2024-02-29 08:54:00","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/node-js-2\/\" title=\"Node.js\">Node.js<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWritable Streams In Node.Js\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Node.js","link":"https:\/\/www.tothenew.com\/blog\/category\/node-js-2\/"},{"label":"Writable Streams In Node.Js","link":"https:\/\/www.tothenew.com\/blog\/writable-streams-in-node-js\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/11399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=11399"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/11399\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=11399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=11399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=11399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}