{"name":"dtype","description":"Return a data type from a string representing the type","version":"1.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"},"licenses":[{"type":"MIT","url":"https://github.com/shama/dtype/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"node test.js"},"dependencies":{},"devDependencies":{"tape":"^4.0.0"},"keywords":["ndarray","array","typed"],"gitHead":"b6c78968963f8565a9f985dd22816b955dee5aba","_id":"dtype@1.0.0","_shasum":"ae34ffa282673715203582d61bbdd0aad3cba3e7","_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":"ae34ffa282673715203582d61bbdd0aad3cba3e7","tarball":"http://registry-npm.ywwl.com/dtype/download/dtype-1.0.0.tgz","integrity":"sha512-g0z6u5N8ue2ctsnZM7MfoLCleXVKZeJAEbmaz+vr8QEPoCKcfFX78Qy3eIe3s2Luf8E0FDwfMHqd4FXo3gvTEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAEDuzFjgDQXCJ/GnOW6h0hL50g9busiUNgoWYjZruDuAiEAqIEWMPMGSgPZjHibaYLo313moHmfAZDQlJtMBiT9AiE="}],"size":2104,"noattachment":false,"key":"/dtype/-/dtype-1.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":1430963128197,"_cnpm_publish_time":1430963128197,"dist-tags":{"latest":"2.0.0"}}