{"_id":"@alecfaustino/lotide","_rev":"2-60656d0ff2d9806af05127d82a84f747","name":"@alecfaustino/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@alecfaustino/lotide","version":"1.0.0","keywords":[],"author":{"url":"https://github.com/alecfaustino","name":"Alec Faustino"},"license":"ISC","_id":"@alecfaustino/lotide@1.0.0","maintainers":[{"name":"alecfaustino","email":"alecfaustino@outlook.com"}],"homepage":"https://github.com/alecfaustino/Lotide#readme","bugs":{"url":"https://github.com/alecfaustino/Lotide/issues"},"dist":{"shasum":"aa22d603c2025d7f4d35e3afc3464ef796e768c6","tarball":"https://registry.npmjs.org/@alecfaustino/lotide/-/lotide-1.0.0.tgz","fileCount":27,"integrity":"sha512-hAx1GcjRoresFVU6UjJnENk2XIbvgqFLqICNp1ipFVsJ6sbfav8NWH5aNRY6Qt+mUhkHd7sKGljPCbUOdkA3UQ==","signatures":[{"sig":"MEUCIAWqSSQaOZDJwSKx95TX1JYBLKqO1xFJhc/S+chHpv/sAiEAptZC9ZeUBRGfgjAKZFR7ZuJiknuWc+FpUo1gFZoCmg8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22431},"main":"index.js","gitHead":"3d9d6ded7973b253b895f0a8e51672930a7e1910","scripts":{"test":"mocha"},"_npmUser":{"name":"alecfaustino","email":"alecfaustino@outlook.com"},"repository":{"url":"git+https://github.com/alecfaustino/Lotide.git","type":"git"},"_npmVersion":"8.19.4","description":"This library was published for learning purposes and is not intended for use in production-grade software. It is a mini-clone of the Lodash library.","directories":{"test":"test"},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_npmOperationalInternal":{"tmp":"tmp/lotide_1.0.0_1741274705615_0.5017070656699048","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@alecfaustino/lotide","version":"1.0.1","description":"This library was published for learning purposes and is not intended for use in production-grade software. It is a mini-clone of the Lodash library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alecfaustino/Lotide.git"},"keywords":[],"author":{"name":"Alec Faustino","url":"https://github.com/alecfaustino"},"license":"ISC","bugs":{"url":"https://github.com/alecfaustino/Lotide/issues"},"homepage":"https://github.com/alecfaustino/Lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"aa3893360d181212eb1938139b03c8e94ffe19ee","_id":"@alecfaustino/lotide@1.0.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-R456g+2oegLD+6pSn7wMSEsaDRLBsWfKiEzI0r6uouRUvuEQpR5iIp0tEFJyl2GcDSUC9fGfXsNPm+9DUdJlTQ==","shasum":"c66f11ed0aaff76e59090d4743ecb99c1eafc352","tarball":"https://registry.npmjs.org/@alecfaustino/lotide/-/lotide-1.0.1.tgz","fileCount":36,"unpackedSize":25023,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCJFNgG2FQgDBpx8kuNyGEwmlIjYndn0WH1TIVy2l2uwgIhAPoqV0LSn2Q6Pi6NGflB3oNaUaddokZxQob+pW596mD8"}]},"_npmUser":{"name":"alecfaustino","email":"alecfaustino@outlook.com"},"maintainers":[{"name":"alecfaustino","email":"alecfaustino@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lotide_1.0.1_1741409083454_0.5950377256161408"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-06T15:25:05.499Z","modified":"2025-03-08T04:44:43.827Z","1.0.0":"2025-03-06T15:25:05.788Z","1.0.1":"2025-03-08T04:44:43.662Z"},"bugs":{"url":"https://github.com/alecfaustino/Lotide/issues"},"author":{"name":"Alec Faustino","url":"https://github.com/alecfaustino"},"license":"ISC","homepage":"https://github.com/alecfaustino/Lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/alecfaustino/Lotide.git"},"description":"This library was published for learning purposes and is not intended for use in production-grade software. It is a mini-clone of the Lodash library.","maintainers":[{"name":"alecfaustino","email":"alecfaustino@outlook.com"}],"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 @alecfaustino/lotide`\n\n**Require it:**\n\n`const _ = require('@alecfaustino/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- `eqArrays(arr1, arr2)`: Will return a boolean indicating if two arrays are equal. \n- `assertArraysEqual(arr1, arr2)`: Will log an assertion if two arrays are equal.\n- `eqObj(obj1, obj2)`: Will return a boolean indicating if two objects are equal. \n- `assertObjectsEqual(obj1, obj2)`: Will log an assertion if two objects are equal.\n- `assertEqual(actual, expected)`: Will log an assertion if two values are strictly equal.\n- `countLetters(sentence)`: Will return a frequency map of letters.\n- `countOnly(allItemsArr, itemsToCountObj)`: Will count items in an array. Counted items specified in an object.\n- `findKey(obj, fn)`: Will find a key that is true for the function passed.\n- `findKeyByValue(obj, value)`: Will find a key that matches the value passed.\n- `flatten(arr)`: Will create a new array with all the sub arrays concatenated into it.\n- `head(arr)`: Will return the first element of an array.\n- `middle(arr)`: Will return the middle element(s) of an array. \n- `tail(arr)`: Will return the last element of an array. \n- `letterPositions(sentence)`: Will return a map of letter and their array of indicies in the original sentence. \n- `map(arr, fn)`: Will return a new array after the callback is called on each element of original array.\n- `takeUntil(arr, fn)`: Will return a new array of elements from original until the first instance of fn returns true on an element. \n- `without(arr, toRemove)`: Will return a new array of elements from the original array without the elements indicated in a \"toRemove\" array. \n\n","readmeFilename":"README.md"}