{"_id":"@carmichaeldb/lotide","_rev":"1-20d2198febbce28cf2d46172579a4890","name":"@carmichaeldb/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@carmichaeldb/lotide","version":"1.0.0","description":"a collection of functions as a clone of Lodash, created and published for education purposes","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Carmichaeldb/lotide.git"},"keywords":[],"author":{"name":"David Carmichael"},"license":"ISC","bugs":{"url":"https://github.com/Carmichaeldb/lotide/issues"},"homepage":"https://github.com/Carmichaeldb/lotide#readme","devDependencies":{"chai":"^4.3.10","mocha":"^9.2.2"},"dependencies":{},"gitHead":"18a78d596f925c4bcefa93b6070b282b157764ab","_id":"@carmichaeldb/lotide@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-kpLppqv09sbcuTWBSCgJicJZ4VGH/knKpUI0wupqG+DUXB4XSHW8kDnYCOTEa8JtsAldz3gJpEYd7ZwdacaRsg==","shasum":"2e915ff1fdce2b0049c1daf9963eb4c8f242eca1","tarball":"https://registry.npmjs.org/@carmichaeldb/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":20226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgo+WKNkZkCMVLptfx4Irh12uNUV8DUZ/DwnnCP343IAIgHIMnFoiN/UrWN56r0aGj8R331C7BFHcMfhT8LLSi7YM="}]},"_npmUser":{"name":"carmichaeldb","email":"carmichael.db88@gmail.com"},"maintainers":[{"name":"carmichaeldb","email":"carmichael.db88@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1697152589560_0.7302066040635449"},"_hasShrinkwrap":false},"1.0.1":{"name":"@carmichaeldb/lotide","version":"1.0.1","description":"a collection of functions as a clone of Lodash, created and published for education purposes","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Carmichaeldb/lotide.git"},"keywords":[],"author":{"name":"David Carmichael"},"license":"ISC","bugs":{"url":"https://github.com/Carmichaeldb/lotide/issues"},"homepage":"https://github.com/Carmichaeldb/lotide#readme","devDependencies":{"chai":"^4.3.10","mocha":"^9.2.2"},"dependencies":{},"gitHead":"549124bd0fe16b7c4c27561ee7604a5119bf1c3d","_id":"@carmichaeldb/lotide@1.0.1","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-KcUe8tpsKt3ZXSEvfXotBsVn9Nk3J/wLfAIuokUSfBOQTI7ToIflpZdgsZr3XXJDFks+KNfcyJ5GlDPWQSvPsQ==","shasum":"7cd39bff5bd1995303db4e75ac3b864ff42a63f4","tarball":"https://registry.npmjs.org/@carmichaeldb/lotide/-/lotide-1.0.1.tgz","fileCount":37,"unpackedSize":30494,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGn5EoZx/BWfFQ5sxeYSUzYkPb6AzLjEOC04h7dQ0SmgIgMkeqd3hXqdMctrgDYI5fUzTzuXvgNUp6//1YsytUfV4="}]},"_npmUser":{"name":"carmichaeldb","email":"carmichael.db88@gmail.com"},"maintainers":[{"name":"carmichaeldb","email":"carmichael.db88@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1697263345496_0.8632824971488295"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-12T23:16:29.404Z","1.0.0":"2023-10-12T23:16:29.739Z","modified":"2023-10-14T06:02:25.857Z","1.0.1":"2023-10-14T06:02:25.686Z"},"maintainers":[{"name":"carmichaeldb","email":"carmichael.db88@gmail.com"}],"description":"a collection of functions as a clone of Lodash, created and published for education purposes","homepage":"https://github.com/Carmichaeldb/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Carmichaeldb/lotide.git"},"author":{"name":"David Carmichael"},"bugs":{"url":"https://github.com/Carmichaeldb/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 @carmichaeldb/lotide`\n\n**Require it:**\n\n`const _ = require('@carmichaeldb/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* `assertArraysEqual(...)`: Takes two arrays and runs eqArrays to verify if they match. Returns a console.log message.\n* `assertEqual(...)`: Takes two variables and verifies if they match. Returns a console.log message.\n* `assertObjectsEqual(...)`: Takes two objects and runs eqObjects to verify if they match. Returns a console.log message.\n* `countLetters(...)`: Counts the number of each letters in a string. Returns an object of letters with their number of occurances.\n* `countOnly(...)`: Takes array of strings and object of search items. Returns object of search items and their number of occurances.\n* `eqArrays(...)`: Takes two arrays and compares them for a perfect match with a true or false return.\n* `eqObjects(...)`: Takes two objects and compares them as matching with a true or false return.\n* `findKey(...)`: Takes object and callback to determine key in object. Returns the string of the key.\n* `findKeyByValue(...)`: Takes object and value and searches object for key with matching value. Returns string of the key.\n* `flatten(...)`: Takes array and flattens any nested arrays. Returns array.\n* `head(...)`: Takes array and returns first index.\n* `letterPositions(...)`: Takes string and returns object of each string letter as key and string index as value.\n* `map(...)`: Takes array and callback function. Returns array from callback results.\n* `middle(...)`: Takes array and returns array of items in the middle of index.\n* `tail(...)`: Takes array and returns array minus first index of input array.\n* `takeUntil(...)`: Takes array and callback. Returns array of values until callback returns true.\n* `without(...)`: Takes array and values to remove from array. Returns new modified array.\n","readmeFilename":"README.md"}