{"_id":"@amandadr/lotide","name":"@amandadr/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amandadr/lotide","version":"1.0.0","description":"my first library; curtosy of LHL instruction :)","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amandadr/lotide.git"},"author":{"name":"Amanda Roy","email":"amandadroy@gmail.com","url":"https://github.com/amandadr"},"license":"ISC","bugs":{"url":"https://github.com/amandadr/lotide/issues"},"homepage":"https://github.com/amandadr/lotide#readme","devDependencies":{"chai":"^4.3.8","mocha":"^9.2.2"},"gitHead":"429572a96ac7b29c9e1fa593ac4fcb26d0bf345b","_id":"@amandadr/lotide@1.0.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7kGuore7QNjsG1XHLjTjbIGDS4CzsIIuCR9XoUySqNkJlCNxRpC03/g0t0oHNffBW46JL861ZPDjb9Cx/ZifGg==","shasum":"67c1ee3078ac19de9784a10a7e7732a131ad48bf","tarball":"https://registry.npmjs.org/@amandadr/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":21417,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAT9FA2AZhgCuFRND66u/z46MbNazQoBw8/dkwkfIgTAIgYlWzzIvBmUlyR2Wz5kiXdusssQ3VMS5AZWvwvei8GOc="}]},"_npmUser":{"name":"amandadr","email":"amandadroy@gmail.com"},"maintainers":[{"name":"amandadr","email":"amandadroy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1695690397600_0.9280157998737761"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-26T01:06:37.497Z","1.0.0":"2023-09-26T01:06:37.802Z","modified":"2023-09-26T01:06:38.109Z"},"maintainers":[{"name":"amandadr","email":"amandadroy@gmail.com"}],"description":"my first library; curtosy of LHL instruction :)","homepage":"https://github.com/amandadr/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amandadr/lotide.git"},"author":{"name":"Amanda Roy","email":"amandadroy@gmail.com","url":"https://github.com/amandadr"},"bugs":{"url":"https://github.com/amandadr/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 @amandadr/lotide`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@amandadr/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`: tests that two arrays are identical and returns a message to the user.\r\n* `assertEqual`: tests that two primitives are identical and returns a message to the user.\r\n* `assertObjectsEqual`: tests that two objects are identical and returns a message to the user.\r\n* `countLetters`: counts how many of each letter are in a string and returns an object containing the counts.\r\n* `countProps`: counts how many of property values are in an object and returns the count.\r\n* `eqArrays`: tests that two arrays are identical and returns true or false.\r\n* `eqObjects`: tests that two objects are identical and returns true or false.\r\n* `findKeyByValue`: find an objects key name given its value.\r\n* `head`: returns the first value of an array.\r\n* `isOdd`: returns true if a number is odd.\r\n* `letterPositions`: scans for a letter in a string and returns an object conataining corresponding indeces where the letter is found.\r\n* `map`: applies a callback function to a given variable.\r\n* `middle`: returns the middle value/s of an array.\r\n* `tail`: returns everything but the first value of an array.\r\n* `takeUntil`: returns all the values of an array upto a given value.\r\n* `without`: returns an array without the values given (in an array form).","readmeFilename":"README.md"}