{"_id":"@aiman03at/lotide","_rev":"1-40ab4e1c669560c6d554a30b2818cac1","name":"@aiman03at/lotide","description":"A mini clone of the [Lodash](https://lodash.com) library.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@aiman03at/lotide","version":"1.0.0","author":{"name":"aiman03at"},"license":"ISC","_id":"@aiman03at/lotide@1.0.0","maintainers":[{"name":"aiman03at","email":"aiman03at@gmail.com"}],"homepage":"https://github.com/Aiman03at/lotide#readme","bugs":{"url":"https://github.com/Aiman03at/lotide/issues"},"dist":{"shasum":"1056baddbbe1d2d1136bd6764e4ec8d33d8a5541","tarball":"https://registry.npmjs.org/@aiman03at/lotide/-/lotide-1.0.0.tgz","fileCount":37,"integrity":"sha512-YpDlzAeQYG7R4V9MZMmPAejFl6+GimuLg8aezFqvwWoxVAv1ogKZbvpeLBbU4ViqzdZshg1isCK6A4tTM8ZJ1w==","signatures":[{"sig":"MEUCIDkrlFv25+/QwTR9zww2lAYWXAAQ2JsNO6LFc+jhP82SAiEAiX3hNDG7IcmFUtjdf38k3qSUv3tnGvtvb/CsjRyQjYk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26817},"main":"index.js","gitHead":"b91c8de0c4cfb929bb7706588a3d452648db3fb7","scripts":{"test":"mocha"},"_npmUser":{"name":"aiman03at","email":"aiman03at@gmail.com"},"repository":{"url":"git+https://github.com/Aiman03at/lotide.git","type":"git"},"_npmVersion":"6.14.16","description":"A mini clone of the [Lodash](https://lodash.com) library.","directories":{"test":"test"},"_nodeVersion":"12.22.12","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_npmOperationalInternal":{"tmp":"tmp/lotide_1.0.0_1717697461735_0.09571310716570824","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@aiman03at/lotide","version":"1.0.1","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/Aiman03at/lotide.git"},"homepage":"https://github.com/Aiman03at/lotide#readme","bugs":{"url":"https://github.com/Aiman03at/lotide/issues"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"aiman03at"},"license":"ISC","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"dependencies":{"ansi-colors":"^4.1.1","ansi-regex":"^5.0.1","ansi-styles":"^4.3.0","anymatch":"^3.1.3","argparse":"^2.0.1","assertion-error":"^1.1.0","balanced-match":"^1.0.2","binary-extensions":"^2.3.0","brace-expansion":"^1.1.11","braces":"^3.0.3","browser-stdout":"^1.3.1","camelcase":"^6.3.0","chalk":"^4.1.2","check-error":"^1.0.3","chokidar":"^3.5.3","cliui":"^7.0.4","color-convert":"^2.0.1","color-name":"^1.1.4","concat-map":"^0.0.1","debug":"^4.3.3","decamelize":"^4.0.0","deep-eql":"^3.0.1","diff":"^5.0.0","emoji-regex":"^8.0.0","escalade":"^3.1.2","escape-string-regexp":"^4.0.0","fill-range":"^7.1.1","find-up":"^5.0.0","flat":"^5.0.2","fs.realpath":"^1.0.0","get-caller-file":"^2.0.5","get-func-name":"^2.0.2","glob":"^7.2.0","glob-parent":"^5.1.2","growl":"^1.10.5","has-flag":"^4.0.0","he":"^1.2.0","inflight":"^1.0.6","inherits":"^2.0.4","is-binary-path":"^2.1.0","is-extglob":"^2.1.1","is-fullwidth-code-point":"^3.0.0","is-glob":"^4.0.3","is-number":"^7.0.0","is-plain-obj":"^2.1.0","is-unicode-supported":"^0.1.0","isexe":"^2.0.0","js-yaml":"^4.1.0","locate-path":"^6.0.0","log-symbols":"^4.1.0","minimatch":"^4.2.1","ms":"^2.1.3","nanoid":"^3.3.1","normalize-path":"^3.0.0","once":"^1.4.0","p-limit":"^3.1.0","p-locate":"^5.0.0","path-exists":"^4.0.0","path-is-absolute":"^1.0.1","pathval":"^1.1.1","picomatch":"^2.3.1","randombytes":"^2.1.0","readdirp":"^3.6.0","require-directory":"^2.1.1","safe-buffer":"^5.2.1","serialize-javascript":"^6.0.0","string-width":"^4.2.3","strip-ansi":"^6.0.1","strip-json-comments":"^3.1.1","supports-color":"^8.1.1","to-regex-range":"^5.0.1","type-detect":"^4.0.8","which":"^2.0.2","workerpool":"^6.2.0","wrap-ansi":"^7.0.0","wrappy":"^1.0.2","y18n":"^5.0.8","yargs":"^16.2.0","yargs-parser":"^20.2.4","yargs-unparser":"^2.0.0","yocto-queue":"^0.1.0"},"gitHead":"27752aaf74fd09b4f667f4e92854b83c87449b7e","_id":"@aiman03at/lotide@1.0.1","_nodeVersion":"17.9.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-W/nlxpJbLLxoeVGe3vO+UVrx03fek68v1i6i0ZOQFpwnfKFH5w8I8ASGV8/fnH/5/fIiT9ux4nfCHCP8/N+T8g==","shasum":"b3e6c12463c168c74b78eace17bede6728d23e25","tarball":"https://registry.npmjs.org/@aiman03at/lotide/-/lotide-1.0.1.tgz","fileCount":37,"unpackedSize":31756,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXRje3WmKz+4nN/a7hjhvhwYUIG2fCgN1X89ArWr0S3gIhAK1Gkg9QtIZXMDk13Zm2xERUnxzRORX0Ddf/SUWAnbsk"}]},"_npmUser":{"name":"aiman03at","email":"aiman03at@gmail.com"},"maintainers":[{"name":"aiman03at","email":"aiman03at@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1717730539527_0.45697360685271504"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-06T18:11:01.641Z","modified":"2024-06-07T03:22:19.904Z","1.0.0":"2024-06-06T18:11:01.987Z","1.0.1":"2024-06-07T03:22:19.746Z"},"maintainers":[{"name":"aiman03at","email":"aiman03at@gmail.com"}],"author":{"name":"aiman03at"},"repository":{"type":"git","url":"git+https://github.com/Aiman03at/lotide.git"},"license":"ISC","homepage":"https://github.com/Aiman03at/lotide#readme","bugs":{"url":"https://github.com/Aiman03at/lotide/issues"},"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 @aiman03at/lotide`\n\n**Require it:**\n\n`const _ = require('@aiman03at/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- `head(array)`: Returns the first element in an Array.\n\n  `tail(array)`: Returns an array containing all the elements from main array except the first element.\n\n  `middle(arr)`: Returns 1 middle element from array arr if length of array is negative else 2 middle elements if the length is positive.\n\n  `assertAraysEqual(array1,array2)` : Checking two arrays are equal and consoles if assertion is passed or failed.\n\n  `assertEqual(actual,expected)` : Console logs passed if two values are same else Failed if actual is not equal to expected.\n\n  `assertObjectsEqual(object1, object2)` :Assertion message-Assertion passed if both objects are equal else Assertion fail.\n\n  `countLetters(sentence)` : Take in a sentence (as a string) and then returns the count of each of the letters in that sentence.\n\n  `countOnly(array, object)` : Take in an array of strings that we need to look through and an object specifying what to count and   returns counts for a specific subset of those items.\n\n  `eqArrays(array1, array2)` : Evaluates if the two arrays are a perfect match. Returns true for matching arrays and false for unmatched arrays.\n\n  `eqObjects(object1, object2)` : Evaluates if the two objects are a perfect match. Returns true for matching objects and false for unmatched objects.\n\n  `findKey(object, callback)` : Return the first key for which the callback returns a truthy value.\n\n  `findKeyByValue(object, value)` : Search through the Object to check the corresponding key for the given val and returns the key.\n\n  `flatten(array)` : Flatten a multidimensional array into one -dimensional array and returns it.\n\n  `letterPositions(sentence)` : Takes in an sentence as input and returns all the indices (zero-based positions) in the string where each character is found.\n\n  `map(array,callback)` : Evaluates the input array for the callback and returns a new array based on the results of the callback function.\n\n  `takeUntil(array, callback)` : Return a new array based on the results of the callback function.\n\n  `without(array1, array2)` : Array with all the elements from array1 arr without the elements in subarray array2. \n\n","readmeFilename":"README.md"}