{"_id":"@daniel-n-huss/lotide","_rev":"1-c422819f1a98c2c5c8d877550ddb0748","name":"@daniel-n-huss/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@daniel-n-huss/lotide","version":"1.0.0","description":"A clone of lotide, created to learn about javascript packages","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Daniel-N-Huss/lotide.git"},"keywords":[],"author":{"name":"Daniel Huss"},"license":"ISC","bugs":{"url":"https://github.com/Daniel-N-Huss/lotide/issues"},"homepage":"https://github.com/Daniel-N-Huss/lotide#readme","gitHead":"b81a8879c4fb9e36704e77396006d897f39823e8","_id":"@daniel-n-huss/lotide@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"daniel-n-huss","email":"daniel.n.huss@gmail.com"},"dist":{"integrity":"sha512-G+y+f+64xt7Bb1nku5KsVPIQS3Eb0byv/UTlyVhsvLGLpgHYSCDr/BUj24VRxL+oZsOPyC/yp+C+h10FdfEFUQ==","shasum":"7921a814b98e25bc9f1479750355dff69bba97e5","tarball":"https://registry.npmjs.org/@daniel-n-huss/lotide/-/lotide-1.0.0.tgz","fileCount":36,"unpackedSize":15329,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesKUiCRA9TVsSAnZWagAAaRwQAIqEOQXJsH5aUeuk00GI\nF1rzwhnjlR1M09JoopnqgQbubcLSpTE8n9SbsoPxCZxHcy/MP0d7osqkX+5g\npaeJEdaXAd2uqT8lZpM0TkFxyqAx1pfApiG3L4CUNLBQ4NRi/y5fTGGUyr10\n7OT/jNfbLrxbyBynuVcrOccgN55zKVZCWsBivD5DNxj9l+dtMPjroyk/J7bm\nRRFxlCizaE+AElfuGtJcGlSR3w5FopRS2CeQiPBNrMSzvU3d/lngV5I+/KY2\nq3bJblqgTpXL2pKFu8CIBijLscUqF6cYGMeGbGSyf6VQ1QOXviIKRJO+1FHs\nNfQ2K+bZ5nEy8twZ+ySN8kwUTnOvuis8CMEZPTP32EuJXoCBkRIDVBhFgJes\n5PqGwm+aQN2IcSwd6ueuxQTxU85A+vRzGos24J1A0dJt4/j7R76m+u3mS1ln\n4GTYUs0hj2z1/E3Gp2x64+0kfZpiGWclJsYte1rTO4VrNnZVS1CKn9uHuFlJ\nLfyzXjmE1G2bjHSsWoV2PkirhXeoG0wNZNTaT/RnnYnOgRrkooE7u9m9LuO5\nrB1lv99VPLGrhDb1CSVshg+xTk5ABG/fEFB9bttmlRUYMTVan8EXLvruM0gM\nusVlWQ6eGwXE3+bEMXEiMbv2TIvpGHYOHQPiFrIka1G0/U78Iq7559yiJ26g\nYlyJ\r\n=kcAK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSlWnr/KKbb1Zxj/5khaRtqd2eMSs96cnLRIYz98yQbAIgDv6pfFAuj7jvKvzevmQP2k56LXBDT1ATwZDjn1/S5B8="}]},"maintainers":[{"name":"daniel-n-huss","email":"daniel.n.huss@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1588634913550_0.8543394684516574"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-04T23:28:33.513Z","1.0.0":"2020-05-04T23:28:33.685Z","modified":"2022-04-05T02:40:24.944Z"},"maintainers":[{"name":"daniel-n-huss","email":"daniel.n.huss@gmail.com"}],"description":"A clone of lotide, created to learn about javascript packages","homepage":"https://github.com/Daniel-N-Huss/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Daniel-N-Huss/lotide.git"},"author":{"name":"Daniel Huss"},"bugs":{"url":"https://github.com/Daniel-N-Huss/lotide/issues"},"license":"ISC","readme":"# Lotide\n\nA mini clone of the [Lodash](https://lodash.com) library.\n\n## Purpose\n\n**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for use in production-grade software.**\n\nThis project was created and published by me as part of my learnings at Lighthouse Labs. \n\n## Usage\n\n**Install it:**\n\n`npm install @daniel-n-huss/lotide`\n\n**Require it:**\n\n`const _ = require('@daniel-n-huss/lotide');`\n\n**Call it:**\n\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\n\n## Documentation\n\nThe following functions are currently implemented:\n\n* `countLetters(sentence)`: given a string, return an object with the letter (key) and the number of times each appears in the sentence (value) \n*  `countOnly(array, objectWithTestCriteria)`: given an array, and an object with true/false values tied to keys you want counted, return how many times that key appears in the array\n*  `findKey(obj, callback)`: Scan through a passed object for the first key that the callback function returns truthy upon.\n*  `findKeyByValue(object, value)`: search through an object and return the first key that holds the value.\n*  `flatten(array)`: Flatten nested arrays into a single layer. Works on multiple layers.\n*  `head(array)`: return the head (0 index) of an array.\n*  `letterPositions(string)`: given a sentence string, return an object of keys for each letter that contain an array of the indexies where that letter appears in the string.\n*  `map(array, callback)`: modify a given array based on the properties of the callback function passed. \n*  `middle(array)`: return an array containing the value(s) at the centre of a given array.\n*  `tail(array)`: return an array that no longer contains the [0] index.\n*  `takeUntil(array, callback)`: collect data from an array until the callback provided returns a truthy value; data is returned as an array.\n*  `without(array, valueToRemove)`: filter out unwanted values from a given array.","readmeFilename":"README.md"}