{"_id":"@cangoman/lotide","_rev":"2-4ef8f2fb944b0766c2c797a7244c3887","name":"@cangoman/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@cangoman/lotide","version":"1.0.0","description":"@cangoman/lotide, a Lodash mini-clone built as part of LightHouse Labs web dev bootcamp","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/cangoman/lotide.git"},"author":{"name":"Camilo Gomez"},"license":"ISC","bugs":{"url":"https://github.com/cangoman/lotide/issues"},"homepage":"https://github.com/cangoman/lotide#readme","devDependencies":{"chai":"^4.2.0","chao":"^1.0.3","mocha":"^8.0.1"},"gitHead":"76d6954eae9bc76197ae6e3bc7de712a934bd755","_id":"@cangoman/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tNZpzwhCKytlKEJcM1K0Ng7qWgChOWYMdgs6aDHfJ/KLb4fJ2kBeUUb4ImgR1LCWHwhw/NCdQMzou3Dm1fwt3Q==","shasum":"24faa5207d2d2ebbf4b8f48fcd088011fecaeb40","tarball":"https://registry.npmjs.org/@cangoman/lotide/-/lotide-1.0.0.tgz","fileCount":28,"unpackedSize":15504,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHyscCRA9TVsSAnZWagAAL/oQAJCDAW5H7Eq+F6eBe2BY\n3x+NTKhZTOHdscUl1DNIR2Fr3TtLAG5JQmTiIWnSa4PwwPpxHThWZBGnEvrM\nqV7efoKup3ddBuYgrZ0vwIeku94rLUrlqelzOLR1MSS6Wy/VBMMhFtsxAUnS\nWCRx1IbKc6XV5t7ov/pkGb4hmQ2onf6J/ExZ9vpAspUIVxKLPtJhJCBiY/kd\nNv+NCZ/Q0Wn7evACAcSsld5vJOlQj7Ky/+3EZNpkRNKBa4i7bnzYKqcdluYb\n+7w6LE/sgjgjPIufC3Fn7ziT6+PLDenu6geA7C/DM9vPSrX885OqjflpmgiX\neRXrNJDx+T6gHJZXgPfWpvvdBBMZIJpZtRPkm9jcGn9+eTuEShJG9IjgoG14\nwwj5cuI1V6Lh+zkkIgtbFXiXzW/3O7tqzNbWTD9ypmkfnrV3DrW0dmu6gDID\nQzUXBBZkfXgrTKiVWXkHadIFnfjh/G3tmCz0cEDDtms4rPiYneMuy/I/bG5o\nzqRxkcjv4maiA51CqMUW3Utzk+VDhOcRpCqb1Pot1HWrv9hZCytk8hL+0z0s\n/aBWGZf1LJopzpyjYew/s7rPZM3zIvZejxt0LW4hzHF4eX7PYFFlt9Ep14hB\nZZts15MGCLTH9Lo74gpa6zFikZV2kJnHInG/P8GUpwLk5lo52OTOdux4g0nt\nWjZW\r\n=MbR2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6BRSsBFA91vGsj6Uun2Vk7h/WcgQvmW//LB62jpkqOAIgbnJtokoZ2gCrcjPbjNs6mPE4GAsX7N+m1AJIWBFLukM="}]},"maintainers":[{"name":"cangoman","email":"camilogomezmusic@gmail.com"}],"_npmUser":{"name":"cangoman","email":"camilogomezmusic@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1595878171814_0.9999478167414635"},"_hasShrinkwrap":false},"1.0.1":{"name":"@cangoman/lotide","version":"1.0.1","description":"@cangoman/lotide, a Lodash mini-clone built as part of LightHouse Labs web dev bootcamp","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/cangoman/lotide.git"},"author":{"name":"Camilo Gomez"},"license":"ISC","bugs":{"url":"https://github.com/cangoman/lotide/issues"},"homepage":"https://github.com/cangoman/lotide#readme","devDependencies":{"chai":"^4.2.0","chao":"^1.0.3","mocha":"^8.0.1"},"gitHead":"394741b55edc0cf68d6cafd5b29c33a4a59ad4ab","_id":"@cangoman/lotide@1.0.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-KYtbnWwTKMzDztteMKaewZ8s1vhd5mIAzCq0aiNDVVwhIRqM0tY8LrK2NGTzwIwhSWCRDwjyZ+k4DoJTutM92g==","shasum":"16a93bb884fa19c84eb48896c4b3e6e033f007ba","tarball":"https://registry.npmjs.org/@cangoman/lotide/-/lotide-1.0.1.tgz","fileCount":36,"unpackedSize":17633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH055CRA9TVsSAnZWagAAhE0P/RT16GnkmLopLvnTs6WQ\nkwm+7LHUMTNMOkFsTBFiJRPt+fAjLgD9QXiFWp51nLpeZybS3CmxCn3k2fJN\nNrS4J3nKd7YcEGWtekNylbEuQu+l5Vi7zAiWIv+loucPqs4NAL4Io98n6S2r\nHpa/sta60WSf9R1qSaAmL0GNNh10EEgQ8R+esXmpL4fdAoopvBuRD8LsjhHM\nyv8AgBjrT6l3VI6QXYMczpABoCPjodDjjXRx+D8ePmB8JWro1LeJlj3gA8Qp\n5Cmu+ZQ8Pn5nezx5AZLsCUZa8UGj9sCFFTE1XgxNCoXRGwuGi5h+gq0oEpls\n/mBFk240lQHyKWEam6PHYcZSr6nFUToeEVZm7ENzIZ7RP90A220osy+mjEIc\nlTPHMr8LRqb3JvFLapiIZj1dxnpH+TZ1TkbSjHq8hT8Zq6ly7DWxgblyug2d\nA0v1/cqAv3niKt2BKStcPAoBwUf4923vxAz83WsvZhbRQdte/4cKGMPMDIpj\nLUh3fZYxuaVzDiyO5mShx0CDxQDXWSvlhNfBYHFsuOlPbpRGL8ug14CmPrO8\nZdquOFRe0h6ZgxDc1lbfvL8/NXPqgoPa1dAF/ZfGK9E9YK7DFvmyh6egvg14\nmTxjbRURv6hSiB4FaVgaTWyIlESZKxY3eNQ9lp0rdggOO/0qrfhoKm7wH5Sw\nrRxE\r\n=kvMr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXdFhhrv6kYvIfo57D2kbQc60mBzYrjUllAkk9kv0X4AiBWQlqPNmB9UEpKLYM2Rp1sfp68JXNbaceYYqGkVb6T2A=="}]},"maintainers":[{"name":"cangoman","email":"camilogomezmusic@gmail.com"}],"_npmUser":{"name":"cangoman","email":"camilogomezmusic@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1595887225233_0.43288764500469346"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-27T19:29:31.774Z","1.0.0":"2020-07-27T19:29:32.017Z","modified":"2022-04-04T21:37:05.030Z","1.0.1":"2020-07-27T22:00:25.367Z"},"maintainers":[{"name":"cangoman","email":"camilogomezmusic@gmail.com"}],"description":"@cangoman/lotide, a Lodash mini-clone built as part of LightHouse Labs web dev bootcamp","homepage":"https://github.com/cangoman/lotide#readme","repository":{"type":"git","url":"git+https://github.com/cangoman/lotide.git"},"author":{"name":"Camilo Gomez"},"bugs":{"url":"https://github.com/cangoman/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 @cangoman/lotide`\n\n**Require it:**\n\n`const _ = require('@cangoman/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(string)`: returns an object with the count of every character in the string.\n  * `countOnly(allItems, itemsToCount)`: for an array `allItems` returns the count of elements set to `true` in `itemsToCount`.\n  * `eqArrays(array1, array1)`: returns true if arrays are equal.\n  * `eqObjects(object1, object2)`: returns true if objects are equal.\n  * `findKey(object, callback)` returns the first key in `object` for which the `callback` returns a truthy value.\n  * `findKeyByValue(object, value)`: returns the first key which contains the given `value`. If no key is found, returns `undefined`.\n  * `flatten(array)` returns a flattened version of `array`. Uses recursion to deal with unknown levels of nesting.\n  * `head(array)`: returns the first element (head) of an array. Returns an empty array if `array` is empty. Returns undefined if `array` is not an array.\n  * `letterPositions(string)`: returns an object with the characters of the string as keys, and an array for each specifying their position in `string`.\n  * `map(array, callback)`: returns a new array based on the results of the callback function. \n  * `middle(array)`: returns the an array with the middle element of `array` if `array.length` is odd or the middle 2 elements if `array.length` is even.\n  * `tail(array)`: returns an array consisting of all but the first element of `array`. Returns an empty array if `array` is empty.\n  * `takeUntil(array, callback)`: Returns an array with the elements of the array from the beginnig until the callback returns a truthy value. \n  * `without(array, itemsToRemove)`: returns an array with the elements of the original array, minus the elements included in `itemsToRemove`\n","readmeFilename":"README.md"}