{"id":20305683,"url":"https://github.com/bitpay/node-bufferput","last_synced_at":"2025-08-21T20:28:21.033Z","repository":{"id":9416574,"uuid":"11286091","full_name":"bitpay/node-bufferput","owner":"bitpay","description":"Pack multibyte binary values into buffers with specific endiannesses.","archived":false,"fork":false,"pushed_at":"2023-03-08T09:11:06.000Z","size":9,"stargazers_count":7,"open_issues_count":0,"forks_count":19,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T08:03:04.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitpay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-07-09T15:26:04.000Z","updated_at":"2025-03-30T06:39:14.000Z","dependencies_parsed_at":"2024-06-18T15:29:42.187Z","dependency_job_id":"46410101-8413-449f-b4a6-402a6f925617","html_url":"https://github.com/bitpay/node-bufferput","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":0.4,"last_synced_commit":"7cc60ce52b53233e1ac2434ec12ef8d6deb68d97"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fnode-bufferput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fnode-bufferput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fnode-bufferput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fnode-bufferput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpay","download_url":"https://codeload.github.com/bitpay/node-bufferput/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248424631,"owners_count":21101204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T17:09:18.791Z","updated_at":"2025-04-11T14:51:14.423Z","avatar_url":"https://github.com/bitpay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"BufferPut\n===\n\nPack multibyte binary values into buffers with specific endiannesses.  Based\non the original Put by https://github.com/substack/node-put ...this version\nis intended to be a little more conventional in structure and faster\nto instantiate and easier for a VM to optimize.  Instantiation of this version\nis more that 500x faster than the original as measured on nodejs 0.10.12.\n\nInstallation\n============\n\nTo install with [npm](http://github.com/isaacs/npm):\n \n    npm install bufferput\n\nTo run the tests with [expresso](http://github.com/visionmedia/expresso):\n\n    expresso\n\nExamples\n========\n\nbuf.js\n------\n\nBuild a buffer\n\n    #!/usr/bin/env node\n\n    var BufferPut = require('bufferput');\n    var buf = (new BufferPut())\n        .word16be(1337)\n        .word8(1)\n        .pad(5)\n        .put(new Buffer('pow', 'ascii'))\n        .word32le(9000)\n        .buffer()\n    ;\n    console.log(buf);\n\nOutput:\n    \u003cBuffer 05 39 01 00 00 00 00 00 70 6f 77 28 23 00 00\u003e\n\nstream.js\n---------\n\nSend a buffer to a writeable stream\n\n    #!/usr/bin/env node\n\n    var BufferPut = require('bufferput');\n    (new BufferPut())\n        .word16be(24930)\n        .word32le(1717920867)\n        .word8(103)\n        .write(process.stdout)\n    ;\n\nOutput:\n    abcdefg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fnode-bufferput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpay%2Fnode-bufferput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fnode-bufferput/lists"}