{"_id":"@darshita04/lotide","_rev":"5-d739a511005680c8c2d36e9b09286557","name":"@darshita04/lotide","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@darshita04/lotide","version":"1.0.0","author":{"name":"Darshita Patel","email":"pateldarshita1994@gmail.com"},"license":"ISC","_id":"@darshita04/lotide@1.0.0","maintainers":[{"name":"darshita04","email":"pateldarshita1994@gmail.com"}],"homepage":"https://github.com/Darshita-04/lotide#readme","bugs":{"url":"https://github.com/Darshita-04/lotide/issues"},"dist":{"shasum":"32043eb096478e2ed7b3e0500a178b0cb3d62e44","tarball":"https://registry.npmjs.org/@darshita04/lotide/-/lotide-1.0.0.tgz","fileCount":27,"integrity":"sha512-bRE8u0RqDwR20C2ETA93RBVx+MWcEDDfVK1Nf2fX4ngyMSf1vSRimEdvUFp9BDQ3r+1xQyjhnWTHWnyD13y1dQ==","signatures":[{"sig":"MEQCIHr0MTit3HmfpFmmccoBirQotTD/kqhgWQv1WgifYaPeAiBP+gm9ylLQKWjh7g1GUx2Hmgu473p+XZ1C2sekauZEKw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21425},"main":"index.js","gitHead":"f834c5596bd5dd1abd13d7432e2376176b43cffd","scripts":{"test":"mocha"},"_npmUser":{"name":"darshita04","email":"pateldarshita1994@gmail.com"},"repository":{"url":"git+https://github.com/Darshita-04/lotide.git","type":"git"},"_npmVersion":"6.14.6","description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript. While Lodash itself is quite powerful, our version of it is simpler in order to focus on learning the fundamentals of programming and data management using Ja","directories":{"test":"test"},"_nodeVersion":"12.18.4","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_npmOperationalInternal":{"tmp":"tmp/lotide_1.0.0_1729150600704_0.3269278548768484","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@darshita04/lotide","version":"1.0.1","author":{"name":"Darshita Patel","email":"pateldarshita1994@gmail.com"},"license":"ISC","_id":"@darshita04/lotide@1.0.1","maintainers":[{"name":"darshita04","email":"pateldarshita1994@gmail.com"}],"homepage":"https://github.com/Darshita-04/lotide#readme","bugs":{"url":"https://github.com/Darshita-04/lotide/issues"},"dist":{"shasum":"8732f98edaf6b0656becdce28745f40f240f1307","tarball":"https://registry.npmjs.org/@darshita04/lotide/-/lotide-1.0.1.tgz","fileCount":34,"integrity":"sha512-3NkYaTymr83mZ1TSWiCxfGrCl7plWTfWqiZPx/f25rRfOKdFTGNtISyj6saJ65OqeKs1MKhXmo2UHUTKIUMFnA==","signatures":[{"sig":"MEUCIQCQd1Zj5cfbehZUHjIbtrMllhplyE6Obou+LdlSk9U9vwIgZ5yCU9UXZUqNoCrRsXdd1dWESEIsyJ3TMB39RhDKh68=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20164},"main":"index.js","gitHead":"f834c5596bd5dd1abd13d7432e2376176b43cffd","scripts":{"test":"mocha"},"_npmUser":{"name":"darshita04","email":"pateldarshita1994@gmail.com"},"repository":{"url":"git+https://github.com/Darshita-04/lotide.git","type":"git"},"_npmVersion":"6.14.6","description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript. While Lodash itself is quite powerful, our version of it is simpler in order to focus on learning the fundamentals of programming and data management using Ja","directories":{"test":"test"},"_nodeVersion":"12.18.4","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_npmOperationalInternal":{"tmp":"tmp/lotide_1.0.1_1729154325100_0.7163488223233971","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@darshita04/lotide","version":"1.0.2","author":{"name":"Darshita Patel","email":"pateldarshita1994@gmail.com"},"license":"ISC","_id":"@darshita04/lotide@1.0.2","maintainers":[{"name":"darshita04","email":"pateldarshita1994@gmail.com"}],"homepage":"https://github.com/Darshita-04/lotide#readme","bugs":{"url":"https://github.com/Darshita-04/lotide/issues"},"dist":{"shasum":"950d1cdc5e36c6456599efe52625c08e78d2d789","tarball":"https://registry.npmjs.org/@darshita04/lotide/-/lotide-1.0.2.tgz","fileCount":34,"integrity":"sha512-0+oNCPeKmCZ3n2HdY84MOc+ZQ4CO1pRjT5SkyOypZqU9Zb9/ROgbCEeEECCfdrvdzuvqzyzsOkrjPjxXUb394w==","signatures":[{"sig":"MEUCIFxWfp0TXyUfwEpkiyGpiAvzR51GJh3OAHUO4xiczJwXAiEAhrZKomO5WkmeCrFngMcROF6uztTtHmnhPhwkUzPZQ7M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20576},"main":"index.js","gitHead":"22f260f0ac576af4e8f938415e2229a5b90b5da5","scripts":{"test":"mocha"},"_npmUser":{"name":"darshita04","email":"pateldarshita1994@gmail.com"},"repository":{"url":"git+https://github.com/Darshita-04/lotide.git","type":"git"},"_npmVersion":"6.14.6","description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript. While Lodash itself is quite powerful, our version of it is simpler in order to focus on learning the fundamentals of programming and data management using Ja","directories":{"test":"test"},"_nodeVersion":"12.18.4","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_npmOperationalInternal":{"tmp":"tmp/lotide_1.0.2_1729165280152_0.7841176554060643","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@darshita04/lotide","version":"1.0.3","author":{"name":"Darshita Patel","email":"pateldarshita1994@gmail.com"},"license":"ISC","_id":"@darshita04/lotide@1.0.3","maintainers":[{"name":"darshita04","email":"pateldarshita1994@gmail.com"}],"homepage":"https://github.com/Darshita-04/lotide#readme","bugs":{"url":"https://github.com/Darshita-04/lotide/issues"},"dist":{"shasum":"4cc2704c5f08e9ae7370f089b33d747e5c031fcb","tarball":"https://registry.npmjs.org/@darshita04/lotide/-/lotide-1.0.3.tgz","fileCount":34,"integrity":"sha512-jgWbcndL8ABG8pv+A5mgX2J6IQR8mvME1SpletJwtvMSnWmFrPP/KYYB+QlcsgWmtc+Si5uzyTFN/yOgzn8Vew==","signatures":[{"sig":"MEYCIQCtsorG0WjpfvFk+acH7uS+esBPfidpkoqFrTIuBNu4agIhAMqbHP1twsCQ/j7aQxPESs0rLmZS8bdNafO8R8a9lTCu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21210},"main":"index.js","gitHead":"79d0b325427d2af1b28daa2fc438a923325133d3","scripts":{"test":"mocha"},"_npmUser":{"name":"darshita04","email":"pateldarshita1994@gmail.com"},"repository":{"url":"git+https://github.com/Darshita-04/lotide.git","type":"git"},"_npmVersion":"6.14.6","description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript. While Lodash itself is quite powerful, our version of it is simpler in order to focus on learning the fundamentals of programming and data management using Ja","directories":{"test":"test"},"_nodeVersion":"12.18.4","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_npmOperationalInternal":{"tmp":"tmp/lotide_1.0.3_1729165929317_0.08724519590296942","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@darshita04/lotide","version":"1.0.4","author":{"name":"Darshita Patel","email":"pateldarshita1994@gmail.com"},"license":"ISC","_id":"@darshita04/lotide@1.0.4","maintainers":[{"name":"darshita04","email":"pateldarshita1994@gmail.com"}],"homepage":"https://github.com/Darshita-04/lotide#readme","bugs":{"url":"https://github.com/Darshita-04/lotide/issues"},"dist":{"shasum":"1e835614e135e9110d25d76590eb8e867cc09062","tarball":"https://registry.npmjs.org/@darshita04/lotide/-/lotide-1.0.4.tgz","fileCount":34,"integrity":"sha512-lmYA7PVy8WL0ETcL6o+Lo7iEU2Fi9WmZYnZwxE6Uj65BuWUUHTH2yz49ZfXK/f199IglXnTokdfaW+jtlhkvwQ==","signatures":[{"sig":"MEUCIQCzTiKHRN4MtP0C+lE+1JBjj+gNWns7KaSfZZipIs1vDgIgHFIWAQomwJvHqEPcW57wYZSrOqIRRC8ZrDaWhayeAgg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21215},"main":"index.js","gitHead":"79d0b325427d2af1b28daa2fc438a923325133d3","scripts":{"test":"mocha"},"_npmUser":{"name":"darshita04","email":"pateldarshita1994@gmail.com"},"repository":{"url":"git+https://github.com/Darshita-04/lotide.git","type":"git"},"_npmVersion":"6.14.6","description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript. While Lodash itself is quite powerful, our version of it is simpler in order to focus on learning the fundamentals of programming and data management using Ja","directories":{"test":"test"},"_nodeVersion":"12.18.4","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_npmOperationalInternal":{"tmp":"tmp/lotide_1.0.4_1729166169587_0.73639837705392","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@darshita04/lotide","version":"1.0.5","description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript. While Lodash itself is quite powerful, our version of it is simpler in order to focus on learning the fundamentals of programming and data management using Ja","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Darshita-04/lotide.git"},"author":{"name":"Darshita Patel","email":"pateldarshita1994@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/Darshita-04/lotide/issues"},"homepage":"https://github.com/Darshita-04/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"60d623b1d48559574f8cb1c68e7bd62fced629c2","_id":"@darshita04/lotide@1.0.5","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6AcfLWpfJiAxXH+F/WrTl05NrEwMdqL8niHJs91V4nOBmMq9F4z+ZKvrdCBXZtDIkFWNMCCDPewvOw16ukzK4w==","shasum":"57169435b524577d1f0af7c9a665731db1b95a6c","tarball":"https://registry.npmjs.org/@darshita04/lotide/-/lotide-1.0.5.tgz","fileCount":37,"unpackedSize":19814,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRubGrsPrHFG35FUogpAuDYN+EP1AFOzNablCrhlp8OwIgfDAtI7nbMX58vKWCA8nG4YJJHGph3KvjXiRHnYygaBc="}]},"_npmUser":{"name":"darshita04","email":"pateldarshita1994@gmail.com"},"maintainers":[{"name":"darshita04","email":"pateldarshita1994@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.5_1729227420036_0.7024388503783567"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-17T07:36:40.581Z","modified":"2024-10-18T04:57:00.403Z","1.0.0":"2024-10-17T07:36:40.884Z","1.0.1":"2024-10-17T08:38:45.313Z","1.0.2":"2024-10-17T11:41:20.348Z","1.0.3":"2024-10-17T11:52:09.528Z","1.0.4":"2024-10-17T11:56:09.807Z","1.0.5":"2024-10-18T04:57:00.203Z"},"bugs":{"url":"https://github.com/Darshita-04/lotide/issues"},"author":{"name":"Darshita Patel","email":"pateldarshita1994@gmail.com"},"license":"ISC","homepage":"https://github.com/Darshita-04/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Darshita-04/lotide.git"},"description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript. While Lodash itself is quite powerful, our version of it is simpler in order to focus on learning the fundamentals of programming and data management using Ja","maintainers":[{"name":"darshita04","email":"pateldarshita1994@gmail.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 @darshita04/lotide`\n\n**Require it:**\n\n`const _ = require('@darshita04/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`: console logs a message indicating if 2 given arrays are or not equal.\n- `assertEqual`: console logs a message indicating if 2 given primitive values are or not equal.\n- `assertObjectsEqual`: console logs a message indicating if 2 given objects have or not the same properties.\n- `countLetters`: receives a string as argument and returns an object with the all the letters from the string as key and the times that letter is repeated as value.\n- `countOnly`: returns how many instances of each string were found in a given string array.\n- `eqArrays`: returns true if 2 given arrays are equal and false if they are not.\n- `eqObjects`: returns true if 2 given objects have the same properties and false if they don't.\n- `findKey`: takes an object and a callback, scans the object and returns the key similar to the callback result.\n- `findKeyByValue`: takes an object and a property value as arguments and returns the correspondent key or undefined if the key is not in the object\n- `flatten`: transform a 1 level matrix into an array with the values that it contains.\n- `head`: takes an array and returns first element of that array.\n- `letterPositions`: takes a string returns an object with each letters as propert and their indices as a value.\n- `middle`: returns an array with the middle value of a given array. If the given array 0, 1 or 2 values it returns an empty array; if it has more than 3 values and its length is even it returns 2 middle value and if the length is odd it returns the middle value.\n- `tail`: takes an array and returns a copy without the first value.\n- `takeUntil`: returns a new array taking the elements from the beginning of given array stoping when the condition in a given callback function is fullfilled.\n- `without`: takes 2 arrays, 1 with a set of values and other with the values to be removed from the first one and returns an array with the remaining values.\n\nThe following dependencies are used to testing:\n\n`chai: ^4.3.1`,\n`mocha: ^9.2.2`","readmeFilename":"README.md"}