{"_id":"audio-type","_rev":"4206102","name":"audio-type","description":"Detect the audio type of a Buffer/Uint8Array","dist-tags":{"latest":"2.2.1"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"time":{"modified":"2026-03-04T17:03:30.000Z","created":"2014-04-27T10:57:26.542Z","2.2.1":"2023-03-03T20:02:41.118Z","2.2.0":"2023-03-03T19:52:49.226Z","2.1.1":"2023-03-03T04:08:27.858Z","2.1.0":"2023-03-03T03:50:48.542Z","2.0.0":"2023-03-02T16:05:11.515Z","1.0.2":"2016-04-23T05:49:20.739Z","1.0.0":"2015-01-13T15:13:25.994Z","0.3.0":"2014-11-22T12:56:34.625Z","0.1.4":"2014-05-08T15:40:10.439Z","0.1.3":"2014-05-01T03:36:35.376Z","0.1.2":"2014-04-30T12:24:35.689Z","0.1.1":"2014-04-29T13:40:58.549Z","0.1.0":"2014-04-27T10:57:26.542Z"},"users":{"rchk":true,"artskydj":true,"hq":true},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"repository":{"type":"git","url":"git+https://github.com/audiojs/audio-type.git"},"versions":{"2.2.1":{"name":"audio-type","version":"2.2.1","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/audiojs/audio-type.git"},"type":"module","main":"audio-type.js","author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=14"},"scripts":{"test":"node test"},"keywords":["audiojs","audio","sound","wav","mp3","flac","type","detect","check","is","binary","uint8array"],"devDependencies":{"read-chunk":"^2.0.0","tape":"^4.6.3"},"gitHead":"5f5a2f6dca57dc249ea7fc152008a4be3e8bd2ff","bugs":{"url":"https://github.com/audiojs/audio-type/issues"},"homepage":"https://github.com/audiojs/audio-type#readme","_id":"audio-type@2.2.1","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"shasum":"5ceae0b0b3cf3b1e117edabb9e5332eaf3bd4f25","size":2277,"noattachment":false,"key":"/audio-type/-/audio-type-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-2.2.1.tgz"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audio-type_2.2.1_1677873760968_0.2962544910369078"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-03T20:02:41.118Z","publish_time":1677873761118,"_cnpm_publish_time":1677873761118},"2.2.0":{"name":"audio-type","version":"2.2.0","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/audiojs/audio-type.git"},"type":"module","main":"audio-type.js","author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=14"},"scripts":{"test":"node test"},"keywords":["audiojs","audio","sound","wav","mp3","flac","type","detect","check","is","binary","uint8array"],"devDependencies":{"read-chunk":"^2.0.0","tape":"^4.6.3"},"gitHead":"5d993fdc3b1c25c65b8853928b38f42b66d1edda","bugs":{"url":"https://github.com/audiojs/audio-type/issues"},"homepage":"https://github.com/audiojs/audio-type#readme","_id":"audio-type@2.2.0","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"shasum":"d18dbfd8cfe120178957f9455069d4f3e2780130","size":2265,"noattachment":false,"key":"/audio-type/-/audio-type-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-2.2.0.tgz"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audio-type_2.2.0_1677873169045_0.39107413328957175"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-03T19:52:49.226Z","publish_time":1677873169226,"_cnpm_publish_time":1677873169226},"2.1.1":{"name":"audio-type","version":"2.1.1","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/audiojs/audio-type.git"},"type":"module","main":"audio-type.js","author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=14"},"scripts":{"test":"node test"},"keywords":["audiojs","audio","sound","wav","mp3","flac","type","detect","check","is","binary","uint8array"],"devDependencies":{"read-chunk":"^2.0.0","tape":"^4.6.3"},"gitHead":"713630b1026bba701acb99cbc0d76b344b5a5bd9","bugs":{"url":"https://github.com/audiojs/audio-type/issues"},"homepage":"https://github.com/audiojs/audio-type#readme","_id":"audio-type@2.1.1","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"shasum":"f59787e157bb0dac8383e33b9957f8341e09ecf9","size":2232,"noattachment":false,"key":"/audio-type/-/audio-type-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-2.1.1.tgz"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audio-type_2.1.1_1677816507677_0.1606451423494868"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-03T04:08:27.858Z","publish_time":1677816507858,"_cnpm_publish_time":1677816507858},"2.1.0":{"name":"audio-type","version":"2.1.0","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/audiojs/audio-type.git"},"type":"module","main":"audio-type.js","author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=14"},"scripts":{"test":"node test"},"keywords":["audiojs","audio","sound","wav","mp3","flac","type","detect","check","is","binary","uint8array"],"devDependencies":{"read-chunk":"^2.0.0","tape":"^4.6.3"},"gitHead":"74d64059903c79925608893a930b5c64dce043ae","bugs":{"url":"https://github.com/audiojs/audio-type/issues"},"homepage":"https://github.com/audiojs/audio-type#readme","_id":"audio-type@2.1.0","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"shasum":"e9e5d63f7748de9c13d59bbfa7a7292dc1d15b25","size":2210,"noattachment":false,"key":"/audio-type/-/audio-type-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-2.1.0.tgz"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audio-type_2.1.0_1677815448380_0.7768927378789356"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-03T03:50:48.542Z","publish_time":1677815448542,"_cnpm_publish_time":1677815448542},"2.0.0":{"name":"audio-type","version":"2.0.0","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/audiojs/audio-type.git"},"type":"module","main":"audio-type.js","author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=14"},"scripts":{"test":"node test"},"keywords":["audiojs","audio","sound","wav","mp3","flac","type","detect","check","is","binary","uint8array"],"devDependencies":{"read-chunk":"^2.0.0","tape":"^4.6.3"},"gitHead":"f845f981d2644646ed03c186e8793cc7021a70a5","bugs":{"url":"https://github.com/audiojs/audio-type/issues"},"homepage":"https://github.com/audiojs/audio-type#readme","_id":"audio-type@2.0.0","_nodeVersion":"18.9.1","_npmVersion":"8.19.1","dist":{"shasum":"a6544aae1752e1d75a534dae64538ef16179c458","size":2061,"noattachment":false,"key":"/audio-type/-/audio-type-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-2.0.0.tgz"},"_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audio-type_2.0.0_1677773111362_0.8387938707433242"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-02T16:05:11.515Z","publish_time":1677773111515,"_cnpm_publish_time":1677773111515},"1.0.2":{"name":"audio-type","version":"1.0.2","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hemanth/audio-type.git"},"bin":{"audio-type":"cli.js"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=4"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js","cli.js"],"keywords":["audio","sound","wav","mp3","flac","type","detect","check","is","binary","buffer","uint8array","cli"],"dependencies":{"is-flac":"^1.1.0","is-m4a":"^1.1.0","is-mp3":"^1.1.0","is-ogg":"^1.1.0","is-wav":"^1.1.0","read-chunk":"^2.0.0"},"devDependencies":{"browserify":"^8.1.0","mocha":"*"},"gitHead":"a3b85ca4b913be7e9d458400bd83f22693a1f4a2","bugs":{"url":"https://github.com/hemanth/audio-type/issues"},"homepage":"https://github.com/hemanth/audio-type#readme","_id":"audio-type@1.0.2","_shasum":"9fab56b15734a37e56c21ef6ffadb81618af0fc0","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.10","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"dist":{"shasum":"9fab56b15734a37e56c21ef6ffadb81618af0fc0","size":3153,"noattachment":false,"key":"/audio-type/-/audio-type-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-1.0.2.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/audio-type-1.0.2.tgz_1461390557308_0.7186749060638249"},"directories":{},"publish_time":1461390560739,"_cnpm_publish_time":1461390560739,"_hasShrinkwrap":false},"1.0.0":{"name":"audio-type","version":"1.0.0","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/audio-type"},"bin":{"audio-type":"cli.js"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js","cli.js"],"keywords":["audio","sound","wav","mp3","flac","type","detect","check","is","binary","buffer","uint8array","cli"],"dependencies":{"is-flac":"^1.0.0","is-m4a":"^1.0.0","is-mp3":"^1.1.0","is-ogg":"^1.0.0","is-wav":"^1.0.0","read-chunk":"^1.0.0"},"devDependencies":{"browserify":"^8.1.0","mocha":"*"},"gitHead":"e6bc5881499db3f18c1aa05a649a9191c16a0073","bugs":{"url":"https://github.com/hemanth/audio-type/issues"},"homepage":"https://github.com/hemanth/audio-type","_id":"audio-type@1.0.0","_shasum":"bd443ddfcad8f735cdbc1405563bba1c897a0938","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"bd443ddfcad8f735cdbc1405563bba1c897a0938","size":1334,"noattachment":false,"key":"/audio-type/-/audio-type-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-1.0.0.tgz"},"directories":{},"publish_time":1421162005994,"_cnpm_publish_time":1421162005994,"_hasShrinkwrap":false},"0.3.0":{"name":"audio-type","version":"0.3.0","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/audio-type"},"bin":{"audio-type":"cli.js"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js","cli.js"],"keywords":["audio","sound","wav","mp3","flac","type","detect","check","is","binary","buffer","uint8array","cli"],"dependencies":{"is-flac":"^0.1.2","is-m4a":"^0.1.2","is-mp3":"^0.1.1","is-ogg":"^0.1.2","is-wav":"^0.1.2","read-chunk":"^1.0.0"},"devDependencies":{"browserify":"^6.3.2","mocha":"*"},"gitHead":"2d2ed7188ae84fced1528685ccb6272d155066dc","bugs":{"url":"https://github.com/hemanth/audio-type/issues"},"homepage":"https://github.com/hemanth/audio-type","_id":"audio-type@0.3.0","_shasum":"fd110c7a6beaaa2a6a28b01f0b28669e6cb75f61","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"fd110c7a6beaaa2a6a28b01f0b28669e6cb75f61","size":1630,"noattachment":false,"key":"/audio-type/-/audio-type-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-0.3.0.tgz"},"directories":{},"publish_time":1416660994625,"_cnpm_publish_time":1416660994625,"_hasShrinkwrap":false},"0.1.4":{"name":"audio-type","version":"0.1.4","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/audio-type"},"bin":{"audio-type":"cli.js"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js","cli.js"],"keywords":["audio","sound","wav","mp3","flac","type","detect","check","is","binary","buffer","uint8array","cli"],"dependencies":{"is-flac":"^0.1.0","is-m4a":"^0.1.1","is-mp3":"^0.1.0","is-ogg":"^0.1.0","is-wav":"^0.1.0","read-chunk":"^0.1.0"},"devDependencies":{"browserify":"^3.0.0","mocha":"*"},"bugs":{"url":"https://github.com/hemanth/audio-type/issues"},"homepage":"https://github.com/hemanth/audio-type","_id":"audio-type@0.1.4","_shasum":"b1d9c597513fc144000e171a06d67e2b729d61a7","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"b1d9c597513fc144000e171a06d67e2b729d61a7","size":1638,"noattachment":false,"key":"/audio-type/-/audio-type-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-0.1.4.tgz"},"directories":{},"publish_time":1399563610439,"_cnpm_publish_time":1399563610439,"_hasShrinkwrap":false},"0.1.3":{"name":"audio-type","version":"0.1.3","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/audio-type"},"bin":{"audio-type":"cli.js"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js","cli.js"],"keywords":["audio","sound","wav","mp3","flac","type","detect","check","is","binary","buffer","uint8array","cli"],"dependencies":{"is-flac":"^0.1.0","is-m4a":"^0.1.1","is-mp3":"^0.1.0","is-ogg":"^0.1.0","is-wav":"^0.1.0","read-chunk":"^0.1.0"},"devDependencies":{"browserify":"^3.0.0","mocha":"*"},"bugs":{"url":"https://github.com/hemanth/audio-type/issues"},"homepage":"https://github.com/hemanth/audio-type","_id":"audio-type@0.1.3","_shasum":"1a894fe92d6d859b1235d532d1aebbcaf6132d97","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"1a894fe92d6d859b1235d532d1aebbcaf6132d97","size":953,"noattachment":false,"key":"/audio-type/-/audio-type-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-0.1.3.tgz"},"directories":{},"publish_time":1398915395376,"_cnpm_publish_time":1398915395376,"_hasShrinkwrap":false},"0.1.2":{"name":"audio-type","version":"0.1.2","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/audio-type"},"bin":{"audio-type":"cli.js"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js","cli.js"],"keywords":["audio","sound","wav","mp3","flac","type","detect","check","is","binary","buffer","uint8array","cli"],"dependencies":{"read-chunk":"^0.1.0","is-mp3":"^0.1.0","is-ogg":"^0.1.0","is-wav":"^0.1.0","is-flac":"^0.1.0"},"devDependencies":{"browserify":"^3.0.0","mocha":"*"},"bugs":{"url":"https://github.com/hemanth/audio-type/issues"},"homepage":"https://github.com/hemanth/audio-type","_id":"audio-type@0.1.2","_shasum":"613a075cf6f1ba01a46de16b91e261f12811774e","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"613a075cf6f1ba01a46de16b91e261f12811774e","size":1627,"noattachment":false,"key":"/audio-type/-/audio-type-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-0.1.2.tgz"},"directories":{},"publish_time":1398860675689,"_cnpm_publish_time":1398860675689,"_hasShrinkwrap":false},"0.1.1":{"name":"audio-type","version":"0.1.1","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/audio-type"},"bin":{"audio-type":"cli.js"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js","cli.js"],"keywords":["audio","sound","wav","mp3","flac","type","detect","check","is","binary","buffer","uint8array","cli"],"dependencies":{"read-chunk":"^0.1.0","is-mp3":"^0.1.0","is-ogg":"^0.1.0","is-wav":"^0.1.0","is-flac":"^0.1.0"},"devDependencies":{"browserify":"^3.0.0","mocha":"*"},"bugs":{"url":"https://github.com/hemanth/audio-type/issues"},"homepage":"https://github.com/hemanth/audio-type","_id":"audio-type@0.1.1","_shasum":"4f4ab9c13007ae9904ebf7695ca4bb4f9e27ed33","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"4f4ab9c13007ae9904ebf7695ca4bb4f9e27ed33","size":1612,"noattachment":false,"key":"/audio-type/-/audio-type-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-0.1.1.tgz"},"directories":{},"publish_time":1398778858549,"_cnpm_publish_time":1398778858549,"_hasShrinkwrap":false},"0.1.0":{"name":"audio-type","version":"0.1.0","description":"Detect the audio type of a Buffer/Uint8Array","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/audio-type"},"bin":{"audio-type":"cli.js"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js","cli.js"],"keywords":["audio","sound","wav","mp3","flac","type","detect","check","is","binary","buffer","uint8array","cli"],"dependencies":{"read-chunk":"^0.1.0","is-mp3":"^0.1.0","is-ogg":"^0.1.0","is-wav":"^0.1.0","is-flac":"^0.1.0"},"devDependencies":{"browserify":"^3.0.0","mocha":"*"},"bugs":{"url":"https://github.com/hemanth/audio-type/issues"},"homepage":"https://github.com/hemanth/audio-type","_id":"audio-type@0.1.0","dist":{"shasum":"abc66754153ba10c83389666255f7737e2b368cc","size":1558,"noattachment":false,"key":"/audio-type/-/audio-type-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/audio-type/download/audio-type-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"directories":{},"publish_time":1398596246542,"_cnpm_publish_time":1398596246542,"_hasShrinkwrap":false}},"readme":"# audio-type [![test](https://github.com/audiojs/audio-type/actions/workflows/test.js.yml/badge.svg)](https://github.com/audiojs/audio-type/actions/workflows/test.js.yml) [![stable](https://img.shields.io/badge/stability-stable-brightgreen.svg)](http://github.com/badges/stability-badges) [![npm](https://img.shields.io/npm/v/audio-type.svg)](https://www.npmjs.com/package/audio-type) [![license](https://img.shields.io/npm/l/audio.svg)](https://www.npmjs.com/package/audio-type)\n\n> Detect the audio type of a ArrayBuffer/Uint8Array\n\n## Install\n\n```sh\n$ npm i audio-type\n```\n\n## Usage\n\n##### Node.js\n\n```js\nimport readChunk from 'read-chunk'; // npm install read-chunk\nimport audioType from 'audio-type';\nvar buffer = readChunk.sync('meow.wav', 0, 12);\n\naudioType(buffer);\n//=> wav\n```\n\n##### Browser\n\n```js\nimport audioType from './audio-type.js'\n\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'meow.flac');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\taudioType(this.response);\n\t//=> flac\n};\n\nxhr.send();\n```\n\n\n## API\n\n### audioType(buffer)\n\nReturns: `'mp3'`, `'oga'`, `'flac'`, `'wav'`, `'m4a'`, `'opus'`, `'qoa'`\n\n#### buffer\n\nType: `buffer` *(Node.js)*, `arrayBuffer`, `uint8array`\n\nIt only needs the first 12 bytes.\n\n## License\n\nMIT • <a href=\"https://github.com/krishnized/license/\">ॐ</a>\n\n","_attachments":{},"homepage":"https://github.com/audiojs/audio-type#readme","bugs":{"url":"https://github.com/audiojs/audio-type/issues"},"license":"MIT"}