{"_id":"@bobyzgirlllnpm/alias-quod-voluptates","name":"@bobyzgirlllnpm/alias-quod-voluptates","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bobyzgirlllnpm/alias-quod-voluptates","version":"1.0.0","description":"A minimal node.js package that provides an ArrayBuffer that can be used across processes for interprocess-communication.","main":"index.js","scripts":{},"author":{"name":"bobyzgirlLl"},"license":"MIT","dependencies":{"@bobyzgirlllnpm/aspernatur-fugiat-quam":"^1.0.0","@bobyzgirlllnpm/autem-nemo-incidunt":"^1.0.0","@bobyzgirlllnpm/dolorem-officia-assumenda":"^1.0.0","@bobyzgirlllnpm/dolorem-vero-atque":"^1.0.0","@bobyzgirlllnpm/facere-ipsum-aspernatur":"^1.0.0","@bobyzgirlllnpm/id-nobis-pariatur":"^1.0.0","@bobyzgirlllnpm/illo-architecto-dolorum":"^1.0.0","@bobyzgirlllnpm/impedit-quia-ea":"^1.0.0","@bobyzgirlllnpm/itaque-similique-commodi":"^1.0.0","@bobyzgirlllnpm/iure-velit-sapiente":"^1.0.0","@bobyzgirlllnpm/libero-facere-id":"^1.0.0","@bobyzgirlllnpm/libero-itaque-consequuntur":"^1.0.0","@bobyzgirlllnpm/magnam-laboriosam-illum":"^1.0.0","@bobyzgirlllnpm/mollitia-doloribus-sapiente":"^1.0.0","@bobyzgirlllnpm/mollitia-fugit-officia":"^1.0.0","@bobyzgirlllnpm/nesciunt-voluptatibus-nesciunt":"^1.0.0","@bobyzgirlllnpm/nostrum-inventore-quasi":"^1.0.0","@bobyzgirlllnpm/nostrum-voluptate-provident":"^1.0.0","@bobyzgirlllnpm/pariatur-recusandae-id":"^1.0.0","@bobyzgirlllnpm/perspiciatis-sequi-eligendi":"^1.0.0","@bobyzgirlllnpm/recusandae-minus-veritatis":"^1.0.0","@bobyzgirlllnpm/repudiandae-quae-in":"^1.0.0","@bobyzgirlllnpm/saepe-autem-impedit":"^1.0.0","@bobyzgirlllnpm/suscipit-nisi-fuga":"^1.0.0","@bobyzgirlllnpm/ullam-voluptate-placeat":"^1.0.0","@drftgyhuji7npm/repellendus-eum-et-itaque":"^1.0.0","hai-custom-button":"^1.0.0","remind-works-8th":"^1.0.2","web3-khai-1":"^1.0.1","web3-khai-2":"^1.0.1"},"keywords":["react","ansi","dynamodb","react-hooks","settings","ajax","busy","copy","schema","regular","ES8","filter","es6","look","flatten","descriptor","hot","Object.assign","hasOwn","typeof","Object.keys","hash","exec","sham","lazy","fast-clone","electron","predictable","connect","callback","Array.prototype.flatten","style","cors","number","includes","spec","importexport","Set","package.json","JSON-Schema","Object.is","Iterator","compare","task","reuse","Observables","kinesis","mocha","prop","ECMAScript 2015","typedarray","omit","getopt","Uint16Array","Map","jwt","route53","preserve-symlinks","moment","redux","tester","ArrayBuffer#slice","simpledb","private","emit","up","speed","fastify","sns","spinner","chrome","querystring","core","authentication","descriptors","every","TypeScript","phone","inference","styling","set","Uint8Array","eslint-plugin","es8","ponyfill","jsdiff","search","browserlist","writable","l10n","touch","argv","monorepo","arraybuffer","Symbol","eslintconfig","deep","format","io-ts","break","sequence","ECMAScript 2017","values","stable","Function.prototype.name","glacier","nodejs","lint","CSS","wget","check","deterministic","password","deep-copy","types","install","concat","type","s3","xterm","unicode","parent","bluebird","browser","jsx","chromium","__proto__","rfc4122","eventDispatcher","class-validator","utilities","warning","cloudtrail","in","call","setter","util.inspect","proxy","RFC-6455","robust","circular","mapreduce","hasOwnProperty","asserts","classnames","ES2019","art","agent","tty","AsyncIterator","shrinkwrap","redux-toolkit","Push","ECMAScript 3","libphonenumber","invariant","merge","property","util","typesafe","TypeBox","sameValueZero","escape","Microsoft","Reflect.getPrototypeOf","workflow","ECMAScript 2021","lockfile","chai","eslint","Object","WebSocket","client","trimEnd","characters","awesomesauce","parents","typedarrays","regular expressions","command-line","create","readable","promises","internal slot","autoprefixer","route","arktype","names","listeners","flag","array","keys","fast-deep-copy","typed array","Stream","ajv","stringifier","gradients css3","picomatch","String.prototype.matchAll","clone","es2016","symbol","flat","text","ts","shell","mime-db","korean","isConcatSpreadable","callbound","side","regular expression","valid","rgb","testing","walk","Promise","slice","functions","uninstall","ES2018","serialization","import","byte","performant","Uint8ClampedArray","css nesting","superstruct","spinners","argument","ESnext","accessor","flux","await","ReactiveExtensions","classes","date","tools","express","stringify","vpc","immer","figlet","Array.prototype.flat","rm -fr","description","proto","visual","stream","random","lesscss","ArrayBuffer","time","findLastIndex","traverse","toArray","js","less","optimizer","telephone","remove","Array.prototype.findLastIndex","redact","map","patch","Array.prototype.filter","sharedarraybuffer","auth","inspect","uuid","apollo","push","mime","chinese","mkdirs","Object.values","ECMAScript 2016","collection.es6","findup","wrap","trimStart","regexp","stdlib","fast","ES6","gradients css","less mixins","assign","option","mobile","symlink","full-width","es","symbols","watcher","diff","wordbreak","trimLeft","encryption","es2015","sqs","find-up","helpers","Array.prototype.contains","generics","duplex","airbnb","has","RegExp.prototype.flags","validation","less css","consume","glob","call-bind","extra","graphql","Rx","matchAll","bound","fullwidth","hardlinks","weakset","RegExp#flags","fps","cloudformation","cloudfront","karma","react-testing-library","@@toStringTag","request","Observable","indicator","recursive","censor","hookform","has-own","view","http","workspace:*","deepcopy","bdd","object","Uint32Array","trimRight","watching","make","pretty","ES7","npm","idle","entries","css variable","protobuf","deep-clone","limit","web","utility","optimist","computed-types","modules","state","iteration",".env","take","functional","codes","256","from","get","typed","ArrayBuffer.prototype.slice","tc39","folder","variables","groupBy","gdpr","readablestream","loadbalancing","es2017","wordwrap","yup","es5","dom-testing-library","HyBi","bind","wait","i18n","concatMap","form-validation","dom","find","postcss","beanstalk","postcss-plugin","shim","colors","assertion","mimetypes","ECMAScript 6","collection"],"repository":{"type":"git","url":"git+https://github.com/bobyzgirlllnpm/alias-quod-voluptates.git"},"homepage":"https://github.com/bobyzgirlllnpm/alias-quod-voluptates/#readme","bugs":{"url":"https://github.com/bobyzgirlllnpm/alias-quod-voluptates/issues"},"_id":"@bobyzgirlllnpm/alias-quod-voluptates@1.0.0","gitHead":"381b4e28a96d036e184792e5e7a425413c25b149","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-qz5OGRu9he4gO0z/VDE1Vuq6/6YyUtV8Z8H2j+xa3sqOl3xLy+O6HZukFRIxEMw3IHOdHGclyAABqJhXRJag5g==","shasum":"b4c1f1830400aaec8987a0d49b8fc10fbf82c958","tarball":"https://registry.npmjs.org/@bobyzgirlllnpm/alias-quod-voluptates/-/alias-quod-voluptates-1.0.0.tgz","fileCount":8,"unpackedSize":15315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB4JCUY7jlMgi28wLos7KjfnwawD0mb/tHliknrzWk9UAiAg3otfgnUaLEnkPENm0AxgeYPqoqDFeCZU3O/fQvD3qA=="}]},"_npmUser":{"name":"haiminh1192","email":"haiminh1192@gmail.com"},"directories":{},"maintainers":[{"name":"haiminh1192","email":"haiminh1192@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/alias-quod-voluptates_1.0.0_1714840231769_0.27903839506227923"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-04T16:30:31.631Z","1.0.0":"2024-05-04T16:30:31.950Z","modified":"2024-05-04T16:30:32.279Z"},"maintainers":[{"name":"haiminh1192","email":"haiminh1192@gmail.com"}],"description":"A minimal node.js package that provides an ArrayBuffer that can be used across processes for interprocess-communication.","homepage":"https://github.com/bobyzgirlllnpm/alias-quod-voluptates/#readme","keywords":["react","ansi","dynamodb","react-hooks","settings","ajax","busy","copy","schema","regular","ES8","filter","es6","look","flatten","descriptor","hot","Object.assign","hasOwn","typeof","Object.keys","hash","exec","sham","lazy","fast-clone","electron","predictable","connect","callback","Array.prototype.flatten","style","cors","number","includes","spec","importexport","Set","package.json","JSON-Schema","Object.is","Iterator","compare","task","reuse","Observables","kinesis","mocha","prop","ECMAScript 2015","typedarray","omit","getopt","Uint16Array","Map","jwt","route53","preserve-symlinks","moment","redux","tester","ArrayBuffer#slice","simpledb","private","emit","up","speed","fastify","sns","spinner","chrome","querystring","core","authentication","descriptors","every","TypeScript","phone","inference","styling","set","Uint8Array","eslint-plugin","es8","ponyfill","jsdiff","search","browserlist","writable","l10n","touch","argv","monorepo","arraybuffer","Symbol","eslintconfig","deep","format","io-ts","break","sequence","ECMAScript 2017","values","stable","Function.prototype.name","glacier","nodejs","lint","CSS","wget","check","deterministic","password","deep-copy","types","install","concat","type","s3","xterm","unicode","parent","bluebird","browser","jsx","chromium","__proto__","rfc4122","eventDispatcher","class-validator","utilities","warning","cloudtrail","in","call","setter","util.inspect","proxy","RFC-6455","robust","circular","mapreduce","hasOwnProperty","asserts","classnames","ES2019","art","agent","tty","AsyncIterator","shrinkwrap","redux-toolkit","Push","ECMAScript 3","libphonenumber","invariant","merge","property","util","typesafe","TypeBox","sameValueZero","escape","Microsoft","Reflect.getPrototypeOf","workflow","ECMAScript 2021","lockfile","chai","eslint","Object","WebSocket","client","trimEnd","characters","awesomesauce","parents","typedarrays","regular expressions","command-line","create","readable","promises","internal slot","autoprefixer","route","arktype","names","listeners","flag","array","keys","fast-deep-copy","typed array","Stream","ajv","stringifier","gradients css3","picomatch","String.prototype.matchAll","clone","es2016","symbol","flat","text","ts","shell","mime-db","korean","isConcatSpreadable","callbound","side","regular expression","valid","rgb","testing","walk","Promise","slice","functions","uninstall","ES2018","serialization","import","byte","performant","Uint8ClampedArray","css nesting","superstruct","spinners","argument","ESnext","accessor","flux","await","ReactiveExtensions","classes","date","tools","express","stringify","vpc","immer","figlet","Array.prototype.flat","rm -fr","description","proto","visual","stream","random","lesscss","ArrayBuffer","time","findLastIndex","traverse","toArray","js","less","optimizer","telephone","remove","Array.prototype.findLastIndex","redact","map","patch","Array.prototype.filter","sharedarraybuffer","auth","inspect","uuid","apollo","push","mime","chinese","mkdirs","Object.values","ECMAScript 2016","collection.es6","findup","wrap","trimStart","regexp","stdlib","fast","ES6","gradients css","less mixins","assign","option","mobile","symlink","full-width","es","symbols","watcher","diff","wordbreak","trimLeft","encryption","es2015","sqs","find-up","helpers","Array.prototype.contains","generics","duplex","airbnb","has","RegExp.prototype.flags","validation","less css","consume","glob","call-bind","extra","graphql","Rx","matchAll","bound","fullwidth","hardlinks","weakset","RegExp#flags","fps","cloudformation","cloudfront","karma","react-testing-library","@@toStringTag","request","Observable","indicator","recursive","censor","hookform","has-own","view","http","workspace:*","deepcopy","bdd","object","Uint32Array","trimRight","watching","make","pretty","ES7","npm","idle","entries","css variable","protobuf","deep-clone","limit","web","utility","optimist","computed-types","modules","state","iteration",".env","take","functional","codes","256","from","get","typed","ArrayBuffer.prototype.slice","tc39","folder","variables","groupBy","gdpr","readablestream","loadbalancing","es2017","wordwrap","yup","es5","dom-testing-library","HyBi","bind","wait","i18n","concatMap","form-validation","dom","find","postcss","beanstalk","postcss-plugin","shim","colors","assertion","mimetypes","ECMAScript 6","collection"],"repository":{"type":"git","url":"git+https://github.com/bobyzgirlllnpm/alias-quod-voluptates.git"},"author":{"name":"bobyzgirlLl"},"bugs":{"url":"https://github.com/bobyzgirlllnpm/alias-quod-voluptates/issues"},"license":"MIT","readme":"# shared-buffer\n\nA minimal node.js package that provides an ArrayBuffer that can be used across processes for interprocess-communication.\n\n***\n\n## Installation\n\n```bash\n  npm install shared-buffer --save\n```\n\n## Usage\n\n```typescript\n  /**\n  * Allocate a new shared buffer.\n  * @param key Any unique number to identify the memory segment we're allocating. Must be an integer.\n  * @param size The size of the segment in bytes. Must be an integer.\n  * @param initialize (optional) If true, will initialize a new segment, if false, will acquire an already existing one. \n  */\n  declare function createSharedBuffer(key: number, size: number, initialize?: boolean): ArrayBuffer;\n  \n  /**\n  * Explicitly free a shared buffer.\n  * @param buffer The shared buffer to free.\n  */\n  declare function detachSharedBuffer(buffer: ArrayBuffer): void;\n```\n\n## Example\n\n```js\n  \n  const cluster = require('cluster');\n  const { createSharedBuffer, detachSharedBuffer } = require('shared-buffer');\n  \n  const SEGMENT_ID = 1024;\n  const SEGMENT_ELEMENTS = 10;\n  const SEGMENT_SIZE = SEGMENT_ELEMENTS * Float64Array.BYTES_PER_ELEMENT;\n  \n  if (cluster.isMaster) {\n    const sharedBuffer = createSharedBuffer(SEGMENT_ID, SEGMENT_SIZE, true);\n    const sharedArray = new Float64Array(sharedBuffer);\n    for(let i = 0; i < SEGMENT_ELEMENTS; i++)\n      sharedArray[i] = 1/i;\n    cluster.fork();\n  } else {\n    const sharedBuffer = createSharedBuffer(SEGMENT_ID, SEGMENT_SIZE);\n    const sharedArray = new Float64Array(sharedBuffer);\n    console.log(sharedArray);\n    // the buffer will be automatically detached, but it can be done explicitly\n    detachSharedBuffer(sharedBuffer); \n    process.exit(0);\n  }\n\n/**\n * Output:\n * Float64Array [\n *   Infinity,\n *   1,\n *   0.5,\n *   0.3333333333333333,\n *   0.25,\n *   0.2,\n *   0.16666666666666666,\n *   0.14285714285714285,\n *   0.125,\n *   0.1111111111111111 ]\n */\n```\n\n## Compatibility\n\nPOSIX only for now, sorry.\n\n## License (MIT)\n\nCopyright 2017, Abdullah Ali\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","readmeFilename":"README.md"}