{"_id":"@xmtp/content-type-text","_rev":"7-fe385921d043260e234133f9ebbe6427","name":"@xmtp/content-type-text","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"@xmtp/content-type-text","version":"1.0.0","keywords":["xmtp","messaging","web3","js","ts","javascript","typescript","content-types"],"author":{"name":"XMTP Labs","email":"eng@xmtp.com"},"license":"MIT","_id":"@xmtp/content-type-text@1.0.0","maintainers":[{"name":"alexxmtp","email":"alex@xmtp.com"},{"name":"fabriguespe","email":"fguespe@gmail.com"},{"name":"nplasterer-xmtp","email":"naomi@xmtp.com"},{"name":"saul-xmtp","email":"saul@xmtp.com"},{"name":"nick-xmtp","email":"nicholas@xmtp.com"},{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},{"name":"galligan","email":"mg@xmtp.com"}],"homepage":"https://github.com/xmtp/xmtp-js-content-types","bugs":{"url":"https://github.com/xmtp/xmtp-js-content-types/issues"},"dist":{"shasum":"2162862231e8120d21856fce01159fdef4d8601b","tarball":"https://registry.npmjs.org/@xmtp/content-type-text/-/content-type-text-1.0.0.tgz","fileCount":10,"integrity":"sha512-mXkgDHw327SjFoGqV57w/xgZADq2doKZg3eF26Di7NQ9IGvi1LKPVMhwif4xLdA5duR+GZuhsSszkTllim6vug==","signatures":[{"sig":"MEUCIHX9w1yAcd6vFWAMVsVonw6zIGOsJ87mxdch2iLlxg4EAiEAl1O25rxDU9xLgR2WcRBdcTYmZTe5WbRwBYL6NdIR/64=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11228},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","browser":"dist/browser/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","browser":"./dist/browser/index.js","require":"./dist/index.cjs"}},"gitHead":"056fb9060b0b0e7513d8e2e6c34f708966001516","scripts":{"dev":"yarn clean:dist && yarn rollup -c --watch","lint":"eslint . --ignore-path ../../.gitignore","test":"yarn test:node && yarn test:jsdom","build":"yarn clean:dist && yarn rollup -c","clean":"rimraf .turbo node_modules && yarn clean:dist","format":"yarn format:base -w .","test:node":"NODE_TLS_REJECT_UNAUTHORIZED=0 vitest run --environment node","typecheck":"tsc --noEmit","clean:dist":"rimraf dist","test:jsdom":"NODE_TLS_REJECT_UNAUTHORIZED=0 vitest run --environment happy-dom","format:base":"prettier --ignore-path ../../.gitignore","format:check":"yarn format:base -c ."},"_npmUser":{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},"repository":{"url":"git+ssh://git@github.com/xmtp/xmtp-js-content-types.git","type":"git","directory":"packages/content-type-text"},"_npmVersion":"10.2.4","description":"An XMTP content type to support text messages","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 3 chrome versions","last 3 firefox versions","last 3 safari versions"]},"dependencies":{"@xmtp/content-type-primitives":"^1.0.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.1.6","buffer":"^6.0.3","eslint":"^8.57.0","ethers":"^6.11.1","rimraf":"^5.0.5","rollup":"^4.12.1","vitest":"^1.3.1","prettier":"^3.2.5","happy-dom":"^13.7.3","typescript":"^5.4.2","@types/node":"^18.19.22","@xmtp/xmtp-js":"^11.6.3","rollup-plugin-dts":"^6.1.0","eslint-config-custom":"workspace:*","@rollup/plugin-terser":"^0.4.4","rollup-plugin-filesize":"^10.0.0","@rollup/plugin-typescript":"^11.1.6","prettier-plugin-packagejson":"^2.4.12","@ianvs/prettier-plugin-sort-imports":"^4.2.1"},"_npmOperationalInternal":{"tmp":"tmp/content-type-text_1.0.0_1718303037843_0.12488672204851259","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@xmtp/content-type-text","version":"1.0.1","keywords":["xmtp","messaging","web3","js","ts","javascript","typescript","content-types"],"author":{"name":"XMTP Labs","email":"eng@xmtp.com"},"license":"MIT","_id":"@xmtp/content-type-text@1.0.1","maintainers":[{"name":"alexxmtp","email":"alex@xmtp.com"},{"name":"fabriguespe","email":"fguespe@gmail.com"},{"name":"nplasterer-xmtp","email":"naomi@xmtp.com"},{"name":"saul-xmtp","email":"saul@xmtp.com"},{"name":"nick-xmtp","email":"nicholas@xmtp.com"},{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},{"name":"galligan","email":"mg@xmtp.com"}],"homepage":"https://github.com/xmtp/xmtp-js","bugs":{"url":"https://github.com/xmtp/xmtp-js/issues"},"dist":{"shasum":"6baf4166193c57c39879a3b5e3b5124dd4dd3293","tarball":"https://registry.npmjs.org/@xmtp/content-type-text/-/content-type-text-1.0.1.tgz","fileCount":12,"integrity":"sha512-NzPWtccKc4CPHZi+edlZhTZAuFU91iB5rHR3UboqFxaGJ6UTTCsMmFRdvkoVpZ+HB18cAgPoVOLClfykI1O4pQ==","signatures":[{"sig":"MEYCIQCG3yWjCTySrG9k+BdEk8LQP8uTcWuMoH1Cpz2tMEtboQIhANWimcjIa4mZ85ur06myrf2W/oSOAFMrYPIWWBruHlXz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@xmtp%2fcontent-type-text@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12054},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","browser":"dist/browser/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","browser":"./dist/browser/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"502cd4c0b3a501f1b215cebb53d204fff35c51a6","scripts":{"dev":"yarn clean:dist && yarn rollup -c --watch","test":"yarn test:node && yarn test:jsdom","build":"yarn clean:dist && yarn rollup -c","clean":"yarn clean:dist && rimraf .turbo node_modules","test:node":"NODE_TLS_REJECT_UNAUTHORIZED=0 vitest run --environment node","typecheck":"tsc --noEmit","clean:dist":"rimraf dist","test:jsdom":"NODE_TLS_REJECT_UNAUTHORIZED=0 vitest run --environment happy-dom"},"_npmUser":{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},"repository":{"url":"git+ssh://git@github.com/xmtp/xmtp-js.git","type":"git","directory":"content-types/content-type-text"},"_npmVersion":"10.9.0","description":"An XMTP content type to support text messages","directories":{},"sideEffects":false,"_nodeVersion":"20.15.0","browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 3 chrome versions","last 3 firefox versions","last 3 safari versions"]},"dependencies":{"@xmtp/content-type-primitives":"^1.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.11","buffer":"^6.0.3","ethers":"^6.11.1","rimraf":"^6.0.1","rollup":"^4.27.3","vitest":"^2.1.3","happy-dom":"^15.7.4","typescript":"^5.6.3","@types/node":"^20.17.6","@xmtp/xmtp-js":"^11.6.3","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","rollup-plugin-filesize":"^10.0.0","@rollup/plugin-typescript":"^12.1.1"},"_npmOperationalInternal":{"tmp":"tmp/content-type-text_1.0.1_1732041628190_0.6327206635012514","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@xmtp/content-type-text","version":"2.0.0","keywords":["xmtp","messaging","web3","js","ts","javascript","typescript","content-types"],"author":{"name":"XMTP Labs","email":"eng@xmtp.com"},"license":"MIT","_id":"@xmtp/content-type-text@2.0.0","maintainers":[{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},{"name":"galligan","email":"mg@xmtp.com"},{"name":"nick-xmtp","email":"nicholas@xmtp.com"},{"name":"saul-xmtp","email":"saul@xmtp.com"},{"name":"nplasterer-xmtp","email":"naomi@xmtp.com"},{"name":"fabriguespe","email":"fguespe@gmail.com"},{"name":"alexxmtp","email":"alex@xmtp.com"}],"homepage":"https://github.com/xmtp/xmtp-js","bugs":{"url":"https://github.com/xmtp/xmtp-js/issues"},"dist":{"shasum":"4228cad4c8431b709b02d36f4b62bf8c3c7694fd","tarball":"https://registry.npmjs.org/@xmtp/content-type-text/-/content-type-text-2.0.0.tgz","fileCount":10,"integrity":"sha512-WcFMhjubA6E8j42L6XIsLipDo5AP70TdS2taEH2Ry6V1NeZf8+cjHVrwh60fZeGnrcLWy/tDV4QyXUsD3j045w==","signatures":[{"sig":"MEQCIE3HAqoR4jNRg2xl+vF5xnFjG9sgbKZLGL3bzWF5YGNeAiBqQUK8aXWLd34LYSlBW2E3GBPnpJcdjWeG6wIFFbNbYQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@xmtp%2fcontent-type-text@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9797},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","browser":"dist/browser/index.js","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/browser/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"cc19e05c2b524dc5d09ee496c8ed99813ec64ab7","scripts":{"dev":"yarn clean:dist && yarn rollup -c --watch","test":"yarn test:node && yarn test:jsdom","build":"yarn clean:dist && yarn rollup -c","clean":"yarn clean:dist && rimraf .turbo node_modules","test:node":"NODE_TLS_REJECT_UNAUTHORIZED=0 vitest run --environment node","typecheck":"tsc --noEmit","clean:dist":"rimraf dist","test:jsdom":"NODE_TLS_REJECT_UNAUTHORIZED=0 vitest run --environment happy-dom"},"_npmUser":{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},"repository":{"url":"git+ssh://git@github.com/xmtp/xmtp-js.git","type":"git","directory":"content-types/content-type-text"},"_npmVersion":"10.9.2","description":"An XMTP content type to support text messages","directories":{},"sideEffects":false,"_nodeVersion":"20.15.0","browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 3 chrome versions","last 3 firefox versions","last 3 safari versions"]},"dependencies":{"@xmtp/content-type-primitives":"^2.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.11","buffer":"^6.0.3","ethers":"^6.11.1","rimraf":"^6.0.1","rollup":"^4.27.3","vitest":"^2.1.3","happy-dom":"^15.11.6","typescript":"^5.6.3","@types/node":"^20.17.6","@xmtp/xmtp-js":"^11.6.3","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","rollup-plugin-filesize":"^10.0.0","@rollup/plugin-typescript":"^12.1.1"},"_npmOperationalInternal":{"tmp":"tmp/content-type-text_2.0.0_1733861891553_0.6069652404185086","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@xmtp/content-type-text","version":"2.0.1","keywords":["xmtp","messaging","web3","js","ts","javascript","typescript","content-types"],"author":{"name":"XMTP Labs","email":"eng@xmtp.com"},"license":"MIT","_id":"@xmtp/content-type-text@2.0.1","maintainers":[{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},{"name":"galligan","email":"mg@xmtp.com"},{"name":"nick-xmtp","email":"nicholas@xmtp.com"},{"name":"saul-xmtp","email":"saul@xmtp.com"},{"name":"nplasterer-xmtp","email":"naomi@xmtp.com"},{"name":"fabriguespe","email":"fguespe@gmail.com"}],"homepage":"https://github.com/xmtp/xmtp-js","bugs":{"url":"https://github.com/xmtp/xmtp-js/issues"},"dist":{"shasum":"1871d5e8be17aad40905468c469948f763bd2b71","tarball":"https://registry.npmjs.org/@xmtp/content-type-text/-/content-type-text-2.0.1.tgz","fileCount":10,"integrity":"sha512-cX3Swxx90O1lYi0OC+ENwPfuV/b508V7h1ZNVxt828fmpwc0LL51KZG/PREVTxwk/yiTt2f6OQqnqkC4AbL8Rg==","signatures":[{"sig":"MEUCIEQwSlyCljdtb+xyvP4K2AqCrOSqnpUt9d6THd/GglXtAiEAmLNxADxdbyLHh4OiduZH81RuDRNB+eko0yJx+wx1bJ4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@xmtp%2fcontent-type-text@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9554},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","browser":"dist/browser/index.js","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/browser/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"17e7084d8c135858674bef8db425b721efe63bc6","scripts":{"dev":"yarn clean:dist && yarn rollup -c --watch","test":"NODE_TLS_REJECT_UNAUTHORIZED=0 vitest run --environment node","build":"yarn clean:dist && yarn rollup -c","clean":"yarn clean:dist && rimraf .turbo node_modules","typecheck":"tsc","clean:dist":"rimraf dist"},"_npmUser":{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},"repository":{"url":"git+ssh://git@github.com/xmtp/xmtp-js.git","type":"git","directory":"content-types/content-type-text"},"_npmVersion":"11.2.0","description":"An XMTP content type to support text messages","directories":{},"sideEffects":false,"_nodeVersion":"22.13.0","browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 3 chrome versions","last 3 firefox versions","last 3 safari versions"]},"dependencies":{"@xmtp/content-type-primitives":"^2.0.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.2","rimraf":"^6.0.1","rollup":"^4.36.0","vitest":"^3.0.9","typescript":"^5.8.2","@types/node":"^22.13.10","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","rollup-plugin-filesize":"^10.0.0","@rollup/plugin-typescript":"^12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/content-type-text_2.0.1_1742524716481_0.4857530866189612","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@xmtp/content-type-text","version":"2.0.2","keywords":["xmtp","messaging","web3","js","ts","javascript","typescript","content-types"],"author":{"name":"XMTP Labs","email":"eng@xmtp.com"},"license":"MIT","_id":"@xmtp/content-type-text@2.0.2","maintainers":[{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},{"name":"galligan","email":"mg@xmtp.com"},{"name":"nick-xmtp","email":"nicholas@xmtp.com"},{"name":"saul-xmtp","email":"saul@xmtp.com"},{"name":"nplasterer-xmtp","email":"naomi@xmtp.com"},{"name":"fabriguespe","email":"fguespe@gmail.com"}],"homepage":"https://github.com/xmtp/xmtp-js","bugs":{"url":"https://github.com/xmtp/xmtp-js/issues"},"dist":{"shasum":"dbfde0e5840cd178a18b7ca618b10813e4175820","tarball":"https://registry.npmjs.org/@xmtp/content-type-text/-/content-type-text-2.0.2.tgz","fileCount":10,"integrity":"sha512-nlRufOYPrG5sNbruNPCsb6Qk9/jmJ5lMooPsZEo4Dbwda/2S4bSvrrIncT6if7M2SCha3hxtlgJlFGeTtHy4gQ==","signatures":[{"sig":"MEUCIB0rwRYoUiQYAEZeN6p16IWlezDsKOJoaT5BebliKWeRAiEAlKIlevVP4bCNcy/FW9qYK4QevQ96lCHCI7ZCu4+BWJw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@xmtp%2fcontent-type-text@2.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9553},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","browser":"dist/browser/index.js","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/browser/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"01b6098348bf06f40233085e3d624352554bfc90","scripts":{"dev":"yarn clean:dist && yarn rollup -c --watch","test":"NODE_TLS_REJECT_UNAUTHORIZED=0 vitest run --environment node","build":"yarn clean:dist && yarn rollup -c","clean":"yarn clean:dist && rimraf .turbo node_modules","typecheck":"tsc","clean:dist":"rimraf dist"},"_npmUser":{"name":"xmtp-eng-robot","email":"eng+robot@xmtp.com"},"repository":{"url":"git+ssh://git@github.com/xmtp/xmtp-js.git","type":"git","directory":"content-types/content-type-text"},"_npmVersion":"11.3.0","description":"An XMTP content type to support text messages","directories":{},"sideEffects":false,"_nodeVersion":"22.13.0","browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 3 chrome versions","last 3 firefox versions","last 3 safari versions"]},"dependencies":{"@xmtp/content-type-primitives":"^2.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.5","rimraf":"^6.0.1","rollup":"^4.39.0","vitest":"^3.1.1","typescript":"^5.8.3","@types/node":"^22.14.0","rollup-plugin-dts":"^6.1.1","@rollup/plugin-terser":"^0.4.4","rollup-plugin-filesize":"^10.0.0","@rollup/plugin-typescript":"^12.1.2"},"_npmOperationalInternal":{"tmp":"tmp/content-type-text_2.0.2_1744733504690_0.9963358338613502","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-06-13T18:23:57.758Z","modified":"2025-09-26T21:12:16.632Z","1.0.0":"2024-06-13T18:23:57.970Z","1.0.1":"2024-11-19T18:40:28.398Z","2.0.0":"2024-12-10T20:18:11.734Z","2.0.1":"2025-03-21T02:38:36.687Z","2.0.2":"2025-04-15T16:11:44.883Z"},"bugs":{"url":"https://github.com/xmtp/xmtp-js/issues"},"author":{"name":"XMTP Labs","email":"eng@xmtp.com"},"license":"MIT","homepage":"https://github.com/xmtp/xmtp-js","keywords":["xmtp","messaging","web3","js","ts","javascript","typescript","content-types"],"repository":{"url":"git+ssh://git@github.com/xmtp/xmtp-js.git","type":"git","directory":"content-types/content-type-text"},"description":"An XMTP content type to support text messages","maintainers":[{"email":"eng+robot@xmtp.com","name":"xmtp-eng-robot"},{"email":"matt.galligan@gmail.com","name":"galligan"},{"email":"nicholas@xmtp.com","name":"nick-xmtp"}],"readme":"# Text content type\n\nThis package provides an XMTP content type to support text messages.\n\n## Install the package\n\n```bash\n# npm\nnpm i @xmtp/content-type-text\n\n# yarn\nyarn add @xmtp/content-type-text\n\n# pnpm\npnpm i @xmtp/content-type-text\n```\n\n## Send a text message\n\nUse a string to send a text message. It's not required to specify a content type in the send options for text messages.\n\n```tsx\nawait conversation.send(\"gm\");\n```\n\n## Developing\n\nRun `yarn dev` to build the content type and watch for changes, which will trigger a rebuild.\n\n## Testing\n\nBefore running unit tests, start the required Docker container at the root of this repository. For more info, see [Running tests](../../README.md#running-tests).\n\n## Useful commands\n\n- `yarn build`: Builds the content type\n- `yarn clean`: Removes `node_modules`, `dist`, and `.turbo` folders\n- `yarn dev`: Builds the content type and watches for changes, which will trigger a rebuild\n- `yarn lint`: Runs ESLint\n- `yarn test:setup`: Starts a necessary docker container for testing\n- `yarn test:teardown`: Stops docker container for testing\n- `yarn test`: Runs all unit tests\n- `yarn typecheck`: Runs `tsc`\n","readmeFilename":"README.md"}