{"_id":"@amrinder.singh/lotide","_rev":"1-ac07639ce5be477f8408c68144bc9511","name":"@amrinder.singh/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@amrinder.singh/lotide","version":"1.0.0","description":"Library of functions","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amrinder95/lotide.git"},"author":{"name":"Amrinder Singh","email":"amrinder995@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/amrinder95/lotide/issues"},"homepage":"https://github.com/amrinder95/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"79b7bce25fe338cc9a3d5f917a846d316a312bea","_id":"@amrinder.singh/lotide@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VpzCCfciamPyZlRK3NZXACMr4PRDfO0qeQYcUXGkFtS6T2prnr+8PfiXOWbkpYPCA9D9k+J0EEGm2df0246JhA==","shasum":"36c25ff936dff308b5e3558cdbcc1e7759babc92","tarball":"https://registry.npmjs.org/@amrinder.singh/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":20774,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDF6UQFsQtU9I53QNVipj7/eL2lASqZv3F+I159OWRbQIgcFRIPGxB6BLnDRT9RZROjXZ7FbN1yaPDpIeivwF4fhY="}]},"_npmUser":{"name":"amrinder.singh","email":"amrinder995@gmail.com"},"maintainers":[{"name":"amrinder.singh","email":"amrinder995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1710200412640_0.2614387050097482"},"_hasShrinkwrap":false},"1.0.1":{"name":"@amrinder.singh/lotide","version":"1.0.1","description":"Library of functions","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amrinder95/lotide.git"},"author":{"name":"Amrinder Singh","email":"amrinder995@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/amrinder95/lotide/issues"},"homepage":"https://github.com/amrinder95/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"ae30c8d44f8652c2092364a97cbe146ccb5315f3","_id":"@amrinder.singh/lotide@1.0.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Wc3boE2pLXFVjrkzg6owya7Rn4ThNl8qpziXs0Eq4Z/0CtKucxumEz06FfSdDmO6s44Sff1inPC5M9KQnZ0e/A==","shasum":"bde612cbba51435a94f77d7cc39e756fc1f3771d","tarball":"https://registry.npmjs.org/@amrinder.singh/lotide/-/lotide-1.0.1.tgz","fileCount":26,"unpackedSize":21122,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBfEVJKpq6fLzJir7mjiNVcUw8wsGA/s7fs9rAjpYaUgAiBkEys5sE77hWU6hr+Pz4fzaGArGJ071+jAYrZHCzixSg=="}]},"_npmUser":{"name":"amrinder.singh","email":"amrinder995@gmail.com"},"maintainers":[{"name":"amrinder.singh","email":"amrinder995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1710200991239_0.4211563915313752"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-11T23:40:12.524Z","1.0.0":"2024-03-11T23:40:12.814Z","modified":"2024-03-11T23:49:52.289Z","1.0.1":"2024-03-11T23:49:51.435Z"},"maintainers":[{"name":"amrinder.singh","email":"amrinder995@gmail.com"}],"description":"Library of functions","homepage":"https://github.com/amrinder95/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amrinder95/lotide.git"},"author":{"name":"Amrinder Singh","email":"amrinder995@gmail.com"},"bugs":{"url":"https://github.com/amrinder95/lotide/issues"},"license":"ISC","readme":"# Lotide\r\n\r\nA mini clone of the [Lodash](https://lodash.com) library.\r\n\r\n## Purpose\r\n\r\n**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for use in production-grade software.**\r\n\r\nThis project was created and published by me as part of my learnings at Lighthouse Labs. \r\n\r\n## Usage\r\n\r\n**Install it:**\r\n\r\n`npm install @amrinder.singh/lotide`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@amrinder.singh/lotide');`\r\n\r\n**Call it:**\r\n\r\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\r\n\r\n## Documentation\r\n\r\nThe following functions are currently implemented:\r\n\r\n* `assertArraysEqual(array1, array2)`: Assertion test for eqArrays function.\r\n* `assertEqual(actual, expected)`: Assertion test which compares actual input and expected input. Will not work with objects.\r\n* `assertObjectsEqual(object1, object2)`: Assertion test for eqObjects function.\r\n* `countLetters(string)`: Takes in a sentence or a string and returns an object containing all the letters and their count.\r\n* `countOnly(array, object)`: Iterates over the array and returns only keys which have the value true in the object.\r\n* `eqArrays(array1, array2)`: Compares two arrays and returns true if they contain the same values.\r\n* `eqObjects(object1, object2)`: Compares two objects and returns true if they have the same key/values.\r\n* `findKey(object, callback)`: Returns the first key in an object for which the callback returns a truthy value.\r\n* `findKeyByValue(object, value)`: Returns the key in an object, according to the value.\r\n* `flatten(array)`: Can take nested arrays as parameters and returns a single array with all elements.\r\n* `head(array)`: Returns the first element in an array.\r\n* `letterPositions(string)`: Takes in a word or sentence and returns an object which contains each letter and an array of letter positions based on index. \r\n* `map(array, callback)`: Returns an array with the callback function applied to each element. \r\n* `middle(array)`: Returns the middle value or values of an array.\r\n* `tail(array)`: Returns an array without its first element.\r\n* `takeUntil(array, callback)`: Iterates over the array until the conditions of the callback return a truthy value, and returns new array with all elements until.\r\n* `without(source, itemsToRemove)`: Removes array of items from source array and returns new array.","readmeFilename":"README.md"}