{"name":"dtype","description":"Return a data type from a string representing the type","version":"2.0.0","homepage":"https://github.com/shama/dtype","author":{"name":"Kyle Robinson Young","email":"kyle@dontkry.com","url":"http://dontkry.com"},"repository":{"type":"git","url":"git://github.com/shama/dtype.git"},"bugs":{"url":"https://github.com/shama/dtype/issues"},"license":"MIT","engines":{"node":">= 0.8.0"},"scripts":{"test":"node test.js"},"dependencies":{},"devDependencies":{"tape":"^4.0.0"},"keywords":["ndarray","array","typed"],"gitHead":"9da5997b968f7ddce4c0cbe74452b40eb39a32b3","_id":"dtype@2.0.0","_shasum":"cd052323ce061444ecd2e8f5748f69a29be28434","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"shama","email":"kyle@dontkry.com"},"maintainers":[{"name":"shama","email":"kyle@dontkry.com"},{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"cd052323ce061444ecd2e8f5748f69a29be28434","tarball":"http://registry-npm.ywwl.com/dtype/download/dtype-2.0.0.tgz","integrity":"sha512-s2YVcLKdFGS0hpFqJaTwscsyt0E8nNFdmo73Ocd81xNPj4URI4rj6D60A+vFMIw7BXWlb4yRkEwfBqcZzPGiZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIErhMeMSwTKD3ndNkJT4PHJlJv4CAh4mYhQ53ZCO8yNEAiB5snWUBxnTOxGA5k7xkmfVBG8UvO+JKbl4YCBS0i+sDg=="}],"size":2143,"noattachment":false,"key":"/dtype/-/dtype-2.0.0.tgz"},"directories":{},"readme":"# dtype\n\nReturn a data type from a string representing the data type.\n\nMostly useful for using with [ndarray](https://github.com/mikolalysenko/ndarray)\nwhere you would like instantiate a typed array of the same `array.dtype`.\n\nSee [ndarray-dtype](https://www.npmjs.com/package/ndarray-dtype) if you need to support Buffer and other ndarray types.\n\n## example\n\n```js\nvar dtype = require('dtype')\nvar ndarray = require('ndarray')\n\nvar arr = ndarray(new Int8Array(32))\n\n// some time later\n\nvar newarr = ndarray(new (dtype(arr.dtype)))\n```\n\n## API\n`dtype(string)` will return the following data types based on the strings given:\n\nData type | String\n--------: | :-----\n`Int8Array` | \"int8\"\n`Int16Array` | \"int16\"\n`Int32Array` | \"int32\"\n`Uint8Array` | \"uint8\"\n`Uint16Array` | \"uint16\"\n`Uint32Array` | \"uint32\"\n`Float32Array` | \"float32\"\n`Float64Array` | \"float64\"\n`Array` | \"array\"\n`Uint8ClampedArray` | \"uint8_clamped\"\n\nReturns `undefined` if the type isn't recognized.\n\n## install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install dtype\n```\n\nUse [browserify](http://browserify.org) to `require('dtype')`.\n\n## see also\n\n- [ndarray-dtype](https://www.npmjs.com/package/ndarray-dtype)\n\n## release history\n* 2.0.0 - moving buffer, generic and data to a different module\n* 1.0.0 - Add uint8_clamped, generic, data, dataview and buffer types\n* 0.1.0 - initial release\n\n## license\nCopyright (c) 2015 Kyle Robinson Young<br/>\nLicensed under the MIT license.\n","publish_time":1432584993056,"_cnpm_publish_time":1432584993056,"dist-tags":{"latest":"2.0.0"}}