{"_id":"is-text-path","_rev":"3282834","name":"is-text-path","description":"Check if a file path is a text file","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2024-05-16T05:35:36.000Z","created":"2015-02-16T21:27:19.015Z","3.0.0":"2024-04-30T16:54:38.339Z","2.0.0":"2019-04-19T04:53:42.618Z","1.0.1":"2015-05-25T11:30:59.286Z","1.0.0":"2015-02-16T21:27:19.015Z"},"users":{"rocket0191":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-text-path.git"},"versions":{"3.0.0":{"name":"is-text-path","version":"3.0.0","description":"Check if a file path is a text file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-text-path.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18.20"},"scripts":{"test":"xo && ava"},"keywords":["text","extensions","extension","file","path","check","detect","is"],"dependencies":{"text-extensions":"^3.0.0"},"devDependencies":{"ava":"^6.1.2","xo":"^0.58.0"},"_id":"is-text-path@3.0.0","gitHead":"26ffde7e415e4f3b392f38fe09d47803a05639a0","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/is-text-path/issues"},"homepage":"https://github.com/sindresorhus/is-text-path#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"shasum":"621bf3c47fe4aba4ecf60bba3f2ba87bd435e4f7","size":1553,"noattachment":false,"key":"/is-text-path/-/is-text-path-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-text-path/download/is-text-path-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-text-path_3.0.0_1714496078143_0.17088835064597374"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-30T16:54:38.339Z","publish_time":1714496078339,"_source_registry_name":"default","_cnpm_publish_time":1714496078339},"2.0.0":{"name":"is-text-path","version":"2.0.0","description":"Check if a file path is a text file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-text-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["text","extensions","extension","file","path","check","detect","is"],"dependencies":{"text-extensions":"^2.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"f036c9866c065af4b7d3f526f107d8118c89df63","bugs":{"url":"https://github.com/sindresorhus/is-text-path/issues"},"homepage":"https://github.com/sindresorhus/is-text-path#readme","_id":"is-text-path@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b2484e2b720a633feb2e85b67dc193ff72c75636","size":1589,"noattachment":false,"key":"/is-text-path/-/is-text-path-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-text-path/download/is-text-path-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-text-path_2.0.0_1555649622517_0.5797856882033592"},"_hasShrinkwrap":false,"publish_time":1555649622618,"_cnpm_publish_time":1555649622618},"1.0.1":{"name":"is-text-path","version":"1.0.1","description":"Check if a filepath is a text file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-text-path"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["txt","text","ext","extensions","extension","file","path","check","detect","is"],"dependencies":{"text-extensions":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"4d88120be1209ffb951fd0ee70f07c89ad93c03f","bugs":{"url":"https://github.com/sindresorhus/is-text-path/issues"},"homepage":"https://github.com/sindresorhus/is-text-path","_id":"is-text-path@1.0.1","_shasum":"4e1aa0fb51bfbcb3e92688001397202c1775b66e","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4e1aa0fb51bfbcb3e92688001397202c1775b66e","size":1560,"noattachment":false,"key":"/is-text-path/-/is-text-path-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-text-path/download/is-text-path-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432553459286,"_cnpm_publish_time":1432553459286,"_hasShrinkwrap":false},"1.0.0":{"name":"is-text-path","version":"1.0.0","description":"Check if a filepath is a text file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-text-path"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["txt","text","ext","extensions","extension","file","path","check","detect","is"],"dependencies":{"text-extensions":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"0718772ba45dfe76f567b84133615ef8fe04f7c3","bugs":{"url":"https://github.com/sindresorhus/is-text-path/issues"},"homepage":"https://github.com/sindresorhus/is-text-path","_id":"is-text-path@1.0.0","_shasum":"63624abcc3a26fb6dd15b5abcad9a521df673dbc","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"63624abcc3a26fb6dd15b5abcad9a521df673dbc","size":1571,"noattachment":false,"key":"/is-text-path/-/is-text-path-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-text-path/download/is-text-path-1.0.0.tgz"},"directories":{},"publish_time":1424122039015,"_cnpm_publish_time":1424122039015,"_hasShrinkwrap":false}},"readme":"# is-text-path\n\n> Check if a file path is a text file\n\n## Install\n\n```sh\nnpm install is-text-path\n```\n\n## Usage\n\n```js\nimport isTextPath from 'is-text-path';\n\nisTextPath('source/unicorn.txt');\n//=> true\n\nisTextPath('source/unicorn.png');\n//=> false\n```\n\n## Related\n\n- [`text-extensions`](https://github.com/sindresorhus/text-extensions) - List of text file extensions\n- [`is-binary-path`](https://github.com/sindresorhus/is-binary-path) - Check if a file path is a binary file\n","_attachments":{},"homepage":"https://github.com/sindresorhus/is-text-path#readme","bugs":{"url":"https://github.com/sindresorhus/is-text-path/issues"},"license":"MIT"}