{"_id":"sendmessage","_rev":"1390933","name":"sendmessage","description":"Send a cross process message if message channel is connected.","dist-tags":{"latest":"3.0.2"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2026-09-14T01:23:50.000Z","created":"2014-11-14T08:11:37.118Z","3.0.2":"2025-09-27T15:48:59.788Z","3.0.1":"2024-12-11T09:40:56.979Z","3.0.0":"2024-06-23T16:31:48.786Z","2.0.0":"2023-06-13T12:38:07.207Z","1.1.0":"2016-11-02T12:44:54.165Z","1.0.5":"2015-04-14T08:31:25.165Z","1.0.4":"2014-12-03T17:30:45.296Z","1.0.3":"2014-11-21T08:49:12.606Z","1.0.2":"2014-11-21T08:41:24.423Z","1.0.1":"2014-11-14T09:13:25.645Z","1.0.0":"2014-11-14T08:11:37.118Z"},"users":{},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"repository":{"type":"git","url":"git://github.com/node-modules/sendmessage.git"},"versions":{"3.0.2":{"name":"sendmessage","version":"3.0.2","engines":{"node":">= 18.19.0"},"description":"Send a cross process message if message channel is connected.","scripts":{"lint":"eslint --cache src --ext .ts","pretest":"npm run prepublishOnly && attw --pack","test":"npm run lint && mocha --exit -t 5000 test/*.test.js","ci":"c8 -r lcov -r text -r text-summary npm test","prepublishOnly":"tshy && tshy-after"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@eggjs/tsconfig":"1","@types/mocha":"10","@types/node":"22","c8":"^10.1.2","eslint":"8","eslint-config-egg":"14","mm":"3","mocha":"^11.0.1","tshy":"^3.0.2","tshy-after":"1","typescript":"5"},"homepage":"https://github.com/node-modules/sendmessage","repository":{"type":"git","url":"git://github.com/node-modules/sendmessage.git"},"bugs":{"url":"https://github.com/node-modules/sendmessage/issues"},"keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","type":"module","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"types":"./dist/commonjs/index.d.ts","main":"./dist/commonjs/index.js","module":"./dist/esm/index.js","gitHead":"f073f95cca8c63ca1d181ed4f36f6001d38c01ce","_id":"sendmessage@3.0.2","_nodeVersion":"22.19.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-nQWHp6obvkK9/ExmY8hjqzVPgcgAh1ZRgetV8bPcmXgQl6ujJVwWPeAfkk0aB+PKi4v4GY59Jxa0+c1qwXsrRw==","shasum":"0535a190ea7d17e44eb1873eb98febada5612177","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-3.0.2.tgz","fileCount":11,"unpackedSize":17962,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/sendmessage@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDppkF7OkaoetKxs1Ehe/MYSghuMbejw4oFCb4MuC5jTAiEAlT+ZUmpi63OX/35bnNJfe69lo5szpyRQnleuYPw4Ylo="}],"size":4918,"noattachment":false,"key":"/sendmessage/-/sendmessage-3.0.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c3998733-6aa9-4579-97f2-04322471a52f"}},"directories":{},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sendmessage_3.0.2_1758988139591_0.43411934584428913"},"_hasShrinkwrap":false,"publish_time":1758988139788,"_cnpm_publish_time":1758988139788},"3.0.1":{"name":"sendmessage","version":"3.0.1","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@3.0.1","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues"},"dist":{"shasum":"85ffaecfdf14ef51832e0fb1ec914c4d59ea8795","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-3.0.1.tgz","fileCount":11,"integrity":"sha512-QiusxFoWDDXDm85aQ9E1WwB/votTPYNUSEKnCcmtRthMuqSuoULUmGfeuIdDPUmopzxbaDDRTq+9kPPB/nEc0g==","signatures":[{"sig":"MEYCIQCfSH658Wu3uz5fd4xpDhR3P7EtPrSbnHPV1rACAisfxAIhAMO5tXEIalV6JyZy6mH4ScaesuL2Yi/SehL2/iWGC5uX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/sendmessage@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17962,"size":4917,"noattachment":false,"key":"/sendmessage/-/sendmessage-3.0.1.tgz"},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">= 18.19.0"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"06c422d62aacae3a31e0dc46806e71dc6fea04a8","scripts":{"ci":"c8 -r lcov -r text -r text-summary npm test","lint":"eslint --cache src --ext .ts","test":"npm run lint && mocha --exit -t 5000 test/*.test.js","pretest":"npm run prepublishOnly && attw --pack","prepublishOnly":"tshy && tshy-after"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","type":"git"},"_npmVersion":"10.8.2","description":"Send a cross process message if message channel is connected.","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","mm":"3","tshy":"^3.0.2","mocha":"^11.0.1","eslint":"8","tshy-after":"1","typescript":"5","@types/node":"22","@types/mocha":"10","@eggjs/tsconfig":"1","eslint-config-egg":"14","@arethetypeswrong/cli":"^0.17.1"},"_npmOperationalInternal":{"tmp":"tmp/sendmessage_3.0.1_1733910056773_0.526329280449904","host":"s3://npm-registry-packages-npm-production"},"publish_time":1733910056979,"_cnpm_publish_time":1733910056979},"3.0.0":{"name":"sendmessage","version":"3.0.0","engines":{"node":">= 18.19.0"},"description":"Send a cross process message if message channel is connected.","scripts":{"lint":"eslint --cache src --ext .ts","pretest":"npm run prepublishOnly && attw --pack","test":"npm run lint && mocha --exit -t 5000 test/*.test.js","ci":"c8 -r lcov -r text -r text-summary npm test","prepublishOnly":"tshy && tshy-after"},"dependencies":{},"devDependencies":{"@arethetypeswrong/cli":"^0.15.3","@eggjs/tsconfig":"1","@types/mocha":"10","@types/node":"20","c8":"^10.1.2","eslint":"8","eslint-config-egg":"13","mm":"3","mocha":"^10.4.0","tshy":"1","tshy-after":"1","typescript":"5"},"homepage":"https://github.com/node-modules/sendmessage","repository":{"type":"git","url":"git://github.com/node-modules/sendmessage.git"},"bugs":{"url":"https://github.com/node-modules/sendmessage/issues"},"keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"license":"MIT","type":"module","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"exports":{".":{"import":{"source":"./src/index.ts","types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"source":"./src/index.ts","types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"types":"./dist/commonjs/index.d.ts","main":"./dist/commonjs/index.js","_id":"sendmessage@3.0.0","gitHead":"618ed26c0cf908434d18140ffc5300df76834bdd","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"integrity":"sha512-09rAtW1NAYSw3QFEMJiBjzQCo6wssqw8xW7r7wNQB1BDSQt14wrJMuJYqmO0Xn+k1Tr5yWY3ckpnhSjlvAAmlw==","shasum":"ff816fc9183a5f17aa7b3d60c20b331de822329a","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-3.0.0.tgz","fileCount":10,"unpackedSize":17770,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/sendmessage@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+yTATGakpMs4S061knfIni5XmFfkRptCXNS3kv8K4QAIgaByV5HeLYVv/grk80aTMJFxlBWjuukPTbdxwaLAECpI="}],"size":4845,"noattachment":false,"key":"/sendmessage/-/sendmessage-3.0.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sendmessage_3.0.0_1719160308612_0.4524045958336569"},"_hasShrinkwrap":false,"publish_time":1719160308786,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1719160308786},"2.0.0":{"name":"sendmessage","version":"2.0.0","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@2.0.0","homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues","email":"fengmk2@gmail.com"},"dist":{"shasum":"d3eff19d12827addaae16eca7c9626a5d51dd2f2","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-2.0.0.tgz","fileCount":3,"integrity":"sha512-//UAqD/jhpCAQd4zRJ8KRv5FoaM2jeT94p+C2DlR0yGXZyjJTIQnl/fG7KpLo+x6tH+1SglUUh88C6LOxtaZbA==","signatures":[{"sig":"MEUCIAXMIkb2iAyEuSRyRZIq3YbNHDzfKEq8J8tVMZChdicXAiEA0w4kRbInZZv3fgbeEKu7dR05zQGTHftjxsTKhm9DB3g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/sendmessage@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":6131,"size":2489,"noattachment":false,"key":"/sendmessage/-/sendmessage-2.0.0.tgz"},"main":"index.js","engines":{"node":">= 14.17.0"},"gitHead":"9edc58682d73ec937b0705f0274c1b679ebc26fe","scripts":{"ci":"c8 npm test","lint":"eslint .","test":"mocha --exit -t 5000 test/*.test.js"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","web":"https://github.com/node-modules/sendmessage","type":"git"},"_npmVersion":"9.5.1","description":"Send a cross process message if message channel is connected.","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.14.0","mm":"^3.3.0","mocha":"^10.2.0","eslint":"^8.42.0","should":"*","eslint-config-egg":"^12.2.1"},"_npmOperationalInternal":{"tmp":"tmp/sendmessage_2.0.0_1686659887029_0.28618539299031753","host":"s3://npm-registry-packages"},"publish_time":1686659887207,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1686659887207},"1.1.0":{"name":"sendmessage","version":"1.1.0","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"http://fengmk2.github.com","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@1.1.0","contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues","email":"fengmk2@gmail.com"},"dist":{"shasum":"10a245cee2d50c759f1e09a23477b91496d09e35","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-1.1.0.tgz","integrity":"sha512-riI/U2etmtMKaVPe7zMnr++eG46F191F6Zycwrkm+/sEiHzucNXJETPJ5dQryNaDuHTpYdzmesEJQ2le1DxlMQ==","signatures":[{"sig":"MEQCIDCT3inzdK6LHX0+F7wq0BpFRkYuehvxXNn5NQOZytmGAiBVAZrDrja4VowOVwmqjlWS5OQ+RL7qITz6Y4cQ5KaXOg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2804,"noattachment":false,"key":"/sendmessage/-/sendmessage-1.1.0.tgz"},"main":"index.js","_from":".","files":["index.js"],"_shasum":"10a245cee2d50c759f1e09a23477b91496d09e35","engines":{"node":">= 0.10.0"},"gitHead":"e167f7e69c7fbe82517da6e3e771ad04a52727c9","scripts":{"cnpm":"npm install --registry=https://registry.npm.taobao.org","test":"mocha --check-leaks -R spec -t 5000 -r should test/*.test.js","autod":"autod -w --prefix '~'","jshint":"jshint .","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js","contributors":"contributors -f plain -o AUTHORS"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","web":"https://github.com/node-modules/sendmessage","type":"git"},"_npmVersion":"3.10.8","description":"Send a cross process message if message channel is connected.","directories":{},"_nodeVersion":"6.9.1","dependencies":{},"devDependencies":{"mm":"^1.5.1","autod":"*","mocha":"*","jshint":"*","should":"*","istanbul":"*","contributors":"*"},"_npmOperationalInternal":{"tmp":"tmp/sendmessage-1.1.0.tgz_1478090693632_0.6716408501379192","host":"packages-18-east.internal.npmjs.com"},"publish_time":1478090694165,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1478090694165},"1.0.5":{"name":"sendmessage","version":"1.0.5","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"http://fengmk2.github.com","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@1.0.5","contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues","email":"fengmk2@gmail.com"},"dist":{"shasum":"7f483711dae4461d5b088eb8f1cc3d7fcac546c0","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-1.0.5.tgz","integrity":"sha512-/LPM2ygVlgPQURRp03tLt4fNhNUpnifhfK7Z9BcvJOa+8/bwACYnvFMsnNn+i6txzRdLFN8qXriMCmhr+OGoow==","signatures":[{"sig":"MEYCIQCXOaBc+Y5uNEYwg4TFr0mkexHZiWtx/nBJVcx3+qFV3AIhAI2qoz2FfiqKs17n15KWQWt7J1N2ybYXe9b3a539Gn4N","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2704,"noattachment":false,"key":"/sendmessage/-/sendmessage-1.0.5.tgz"},"main":"index.js","_from":".","files":["index.js"],"_shasum":"7f483711dae4461d5b088eb8f1cc3d7fcac546c0","engines":{"node":">= 0.10.0"},"gitHead":"99bdbcfff6e74c1f211e8477d70b38fb9dd43bee","scripts":{"cnpm":"npm install --registry=https://registry.npm.taobao.org","test":"mocha --check-leaks -R spec -t 5000 -r should test/*.test.js","autod":"autod -w --prefix '~'","jshint":"jshint .","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js","contributors":"contributors -f plain -o AUTHORS"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","web":"https://github.com/node-modules/sendmessage","type":"git"},"_npmVersion":"2.7.5","description":"Send a cross process message if message channel is connected.","directories":{},"_nodeVersion":"1.6.4","dependencies":{},"devDependencies":{"autod":"*","mocha":"*","jshint":"*","should":"*","istanbul":"*","contributors":"*"},"publish_time":1429000285165,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1429000285165},"1.0.4":{"name":"sendmessage","version":"1.0.4","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"http://fengmk2.github.com","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@1.0.4","contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues","email":"fengmk2@gmail.com"},"dist":{"shasum":"1944c116d11541f670beaf9123bdff6256ec80c5","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-1.0.4.tgz","integrity":"sha512-4KXWCRXrnfhmjwLQO+G8y7USfmz4ydly3ETdmjiFdQecOT/MNthS+xmsaiHXjTFqoWPyTAJExwagQuaK++Mphg==","signatures":[{"sig":"MEYCIQD+HbHAOgMfHgnh94yoT+/FbWRV8iaPt1nR/H0IXEgTygIhAPiAHBmJUcs/DZMLNHLXpzDjWSCkPM8jvlUcx47Yqslo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2846,"noattachment":false,"key":"/sendmessage/-/sendmessage-1.0.4.tgz"},"main":"index.js","_from":".","_shasum":"1944c116d11541f670beaf9123bdff6256ec80c5","engines":{"node":">= 0.10.0"},"gitHead":"6db869bbe713200d240e11cc2d5a9c58f4e42556","scripts":{"cnpm":"npm install --registry=https://registry.npm.taobao.org","test":"mocha --check-leaks -R spec -t 5000 -r should test/*.test.js","autod":"autod -w --prefix '~'","jshint":"jshint .","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js","contributors":"contributors -f plain -o AUTHORS"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","web":"https://github.com/node-modules/sendmessage","type":"git"},"_npmVersion":"2.1.6","description":"Send a cross process message if message channel is connected.","directories":{},"_nodeVersion":"0.11.14","dependencies":{},"devDependencies":{"autod":"*","mocha":"*","jshint":"*","should":"*","istanbul":"*","contributors":"*"},"publish_time":1417627845296,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1417627845296},"1.0.3":{"name":"sendmessage","version":"1.0.3","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"http://fengmk2.github.com","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@1.0.3","contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues","email":"fengmk2@gmail.com"},"dist":{"shasum":"ff11d801bce3f5013c7506d6a4d3217823d671a6","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-1.0.3.tgz","integrity":"sha512-CIDTwg9dvQgEBi4AX6unpiDKeMzokXSsL4pSloPSv3SDY2+9YH4gkX5agRGht1jp59sVG/UqsMfOK/1Hvn1QQg==","signatures":[{"sig":"MEYCIQDhistH9sLzBybb/7wzd72D3/RMssqHMAzl6ZxwAiuXRAIhAPe315kZ6QncP+tn6D13qH167ajmpalvZHRjh5hH4RmT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2772,"noattachment":false,"key":"/sendmessage/-/sendmessage-1.0.3.tgz"},"main":"index.js","_from":".","_shasum":"ff11d801bce3f5013c7506d6a4d3217823d671a6","engines":{"node":">= 0.10.0"},"gitHead":"4391ba0c5e19a465d580f5fb9fb2ebd4a9dbaf0b","scripts":{"cnpm":"npm install --registry=https://registry.npm.taobao.org","test":"mocha --check-leaks -R spec -t 5000 -r should test/*.test.js","autod":"autod -w --prefix '~'","jshint":"jshint .","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js","contributors":"contributors -f plain -o AUTHORS"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","web":"https://github.com/node-modules/sendmessage","type":"git"},"_npmVersion":"2.1.6","description":"Send a cross process message if message channel is connected.","directories":{},"_nodeVersion":"0.11.14","dependencies":{},"devDependencies":{"autod":"*","mocha":"*","jshint":"*","should":"*","istanbul":"*","contributors":"*"},"publish_time":1416559752606,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1416559752606},"1.0.2":{"name":"sendmessage","version":"1.0.2","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"http://fengmk2.github.com","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@1.0.2","contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues","email":"fengmk2@gmail.com"},"dist":{"shasum":"445e74a695e67a1cb6406a5ae8c4eddfcc946564","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-1.0.2.tgz","integrity":"sha512-FnOPK2lekvVACy/hw3QmywHfT7kNjt75wIK9/KZPxY2kM8qU/dndVzh1LPINbF75LVcAF3fU5rU57EHO6D+BSQ==","signatures":[{"sig":"MEUCIFqbzgjoMZXq0D1uyeG8TNKMkPXY+KKhjp7vadzqhMZUAiEAgg1iuZcp4zgiVd8AJTRzAnndqLAsCWWTKM5XyZ0eqaA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2789,"noattachment":false,"key":"/sendmessage/-/sendmessage-1.0.2.tgz"},"main":"index.js","_from":".","_shasum":"445e74a695e67a1cb6406a5ae8c4eddfcc946564","engines":{"node":">= 0.10.0"},"gitHead":"6943d87c9bec6762fdbb7d1bb42f0126ff52be71","scripts":{"cnpm":"npm install --registry=https://registry.npm.taobao.org","test":"mocha --check-leaks -R spec -t 5000 -r should test/*.test.js","autod":"autod -w --prefix '~'","jshint":"jshint .","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js","contributors":"contributors -f plain -o AUTHORS"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","web":"https://github.com/node-modules/sendmessage","type":"git"},"_npmVersion":"2.1.6","description":"Send a cross process message if message channel is connected.","directories":{},"_nodeVersion":"0.11.14","dependencies":{},"devDependencies":{"autod":"*","mocha":"*","jshint":"*","should":"*","istanbul":"*","contributors":"*"},"publish_time":1416559284423,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1416559284423},"1.0.1":{"name":"sendmessage","version":"1.0.1","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"http://fengmk2.github.com","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@1.0.1","contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues","email":"fengmk2@gmail.com"},"dist":{"shasum":"19920e06f4c213db4bc0b39e6a9ab18774bd079d","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-1.0.1.tgz","integrity":"sha512-iz2NlZwcT8eqVocYigXLWhSdrqr3Ecwdc3N3OVY8hMhVlS+OQmwX/vpGHzlpXIu+fQdBJknjPlwuqy7HmvgT9g==","signatures":[{"sig":"MEQCIBN4RP6axdwn8rcj4aQhXYIPvsl+fMbOVWcvaIOX4vn6AiAtzOM6wfbp7jZYgl5AeK+v6Qx6ksUl53Kb1sNXlw9I8Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2695,"noattachment":false,"key":"/sendmessage/-/sendmessage-1.0.1.tgz"},"main":"index.js","_from":".","_shasum":"19920e06f4c213db4bc0b39e6a9ab18774bd079d","engines":{"node":">= 0.10.0"},"gitHead":"735b540942498b3663d35035f392e518a4b54e8d","scripts":{"cnpm":"npm install --registry=https://registry.npm.taobao.org","test":"mocha --check-leaks -R spec -t 5000 -r should test/*.test.js","autod":"autod -w --prefix '~'","jshint":"jshint .","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js","contributors":"contributors -f plain -o AUTHORS"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","web":"https://github.com/node-modules/sendmessage","type":"git"},"_npmVersion":"2.0.0","description":"Send a cross process message if message channel is connected.","directories":{},"dependencies":{},"devDependencies":{"autod":"*","mocha":"*","jshint":"*","should":"*","istanbul":"*","contributors":"*"},"publish_time":1415956405645,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1415956405645},"1.0.0":{"name":"sendmessage","version":"1.0.0","keywords":["sendmessage","send","cluster","message","channel closed"],"author":{"url":"http://fengmk2.github.com","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"sendmessage@1.0.0","contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues","email":"fengmk2@gmail.com"},"dist":{"shasum":"f71877d06c122d88c896d9ed548ddaaacd2952a8","tarball":"http://registry-npm.ywwl.com/sendmessage/download/sendmessage-1.0.0.tgz","integrity":"sha512-r3Rx/sVSRQFv4c4yka1j0Rbpm3K+JtBrY1LL9ivvW1alqRl1pbxixy0QL8PGch+11sB9d6eVB6gYXssLkBtpBw==","signatures":[{"sig":"MEYCIQDorO4KBCpBHltdUWzlZbHArecH+ggavSGOoT+k1Wq8JgIhAO64vRV9Uc13eLzZ2AML0E3lSZbHGTTIwKTKed6OSFCY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2593,"noattachment":false,"key":"/sendmessage/-/sendmessage-1.0.0.tgz"},"main":"index.js","_from":".","_shasum":"f71877d06c122d88c896d9ed548ddaaacd2952a8","engines":{"node":">= 0.10.0"},"gitHead":"686bcad865c2748912f9abfd858c0a7301b9f418","scripts":{"cnpm":"npm install --registry=https://registry.npm.taobao.org","test":"mocha --check-leaks -R spec -t 5000 -r should test/*.test.js","autod":"autod -w --prefix '~'","jshint":"jshint .","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 -r should test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 -r should test/*.test.js","contributors":"contributors -f plain -o AUTHORS"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/sendmessage.git","web":"https://github.com/node-modules/sendmessage","type":"git"},"_npmVersion":"2.1.6","description":"Send a cross process message if message channel is connected.","directories":{},"_nodeVersion":"0.11.14","dependencies":{},"devDependencies":{"autod":"*","mocha":"*","jshint":"*","should":"*","istanbul":"*","contributors":"*"},"publish_time":1415952697118,"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_cnpm_publish_time":1415952697118}},"readme":"# sendmessage\n\n[![NPM version][npm-image]][npm-url]\n[![CI](https://github.com/node-modules/sendmessage/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/sendmessage/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/sendmessage.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/sendmessage\n[download-image]: https://img.shields.io/npm/dm/sendmessage.svg?style=flat-square\n[download-url]: https://npmjs.org/package/sendmessage\n[codecov-image]: https://codecov.io/gh/node-modules/sendmessage/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/node-modules/sendmessage\n\nSend a cross process message if message channel is connected.\nAvoid [channel closed](https://github.com/joyent/node/blob/cfcb1de130867197cbc9c6012b7e84e08e53d032/lib/child_process.js#L411) error throw out.\n\n## Install\n\n```bash\nnpm install sendmessage --save\n```\n\n## Usage\n\n### master.js\n\n```ts\nimport { fork } from 'node:child_process';\nimport { sendmessage } from 'sendmessage';\n\nconst worker = fork('./worker.js');\n\nsendmessage(worker, { hi: 'this is a message to worker' });\n```\n\n### worker.js\n\n```ts\nimport { sendmessage } from 'sendmessage';\n\nsendmessage(process, { hello: 'this is a message to master' });\n```\n\n## API\n\n### #sendmessage(childProcess, message)\n\nSend a cross process message.\nIf a process is not child process, this will just call `process.emit('message', message)` instead.\n\n- childProcess: child process instance\n- message: the message need to send\n\n```js\nsendmessage(process, { hello: 'this is a message to master' });\n```\n\nYou can switch to `process.emit('message', message)` using `process.env.SENDMESSAGE_ONE_PROCESS`\n\n## License\n\n[MIT](LICENSE)\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=node-modules/sendmessage)](https://github.com/node-modules/sendmessage/graphs/contributors)\n\nMade with [contributors-img](https://contrib.rocks).\n","_attachments":{},"homepage":"https://github.com/node-modules/sendmessage","bugs":{"url":"https://github.com/node-modules/sendmessage/issues"},"license":"MIT"}