{"_id":"@aflotten/lotide","name":"@aflotten/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aflotten/lotide","version":"1.0.0","description":"A function library inspired by Lodash, that contains many useful functions and assertions.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/aflotten/lotide.git"},"author":{"name":"@aflotten"},"license":"ISC","bugs":{"url":"https://github.com/aflotten/lotide/issues"},"homepage":"https://github.com/aflotten/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"66cd7ffb6d9a1ce11d9b0d922c3ab16db208d3fc","_id":"@aflotten/lotide@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"8.19.2","dist":{"integrity":"sha512-K4FCwZLUdlJml/bhMnYCUC8Jyt6fHeI5Flx7urzG1Q1/0KtG30qVZO5clLXfGhTmmE6B8+KAIq1LXW4gNBvT1A==","shasum":"9a97c08f2b5ad5c6e32913b2b6272eb20a9b6fd6","tarball":"https://registry.npmjs.org/@aflotten/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":12474,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBoX45rM5t4oeOffq4hUpSf//VKYHwVY6fct+LFKfYHsAiEA8FKt+TdBysQuT+RQs+vZkK6uTAjdF+sxkpTfSbFYtkU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSf1JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFbw/+KmaT8NSp37YWoC/l8LRoV1r9SiWxXqg/0r+goRho2GEsTCCp\r\nj+OlJZypZL+9yRl/l8ZXYRpfyhPkmDGceidBxxDUTN6F8yx1e0+s8cT1BWAh\r\n56nxKAljXZbdAviJCmWNuUMVBbDOtIJaimOubWK7yiQ3/ehlOBSUfUuLvzNE\r\nnTsMKbtNNynqysPykTyq+4jSAbl+XHD+HYyr76otkBxjKvRe37K98wRsAKwD\r\nat6dw0nPc0rTzJz3FKTNt1IKVUH3G00BSg3ukHGx+fUYNiYTodY7avFBLlzW\r\ngzipdwrcPEgOC2WqN0oGKjD6dvVky2P4ztVC8kviEWDtfH3JJ4ObAU97EntX\r\nMTh1SlWN2qIbBCqdsAZ4gd2gm89w8oX2NEepirV8xrocqMAH025sabFwjsJd\r\nmAbCdqCSFyhgk1Ys2FWY+orxp6iWFdxEH4WvAnR2ueUmGiMCKHtpSBAe1uWg\r\nHbM+nxcObzm6+StgVTY+vhm2NsN719/sty0Y4aYA1w+X4dvMip1TmJe0ztld\r\n6mY4pozNPKAFSK9Uwa0qj9VBjrucb7WAqd5EoIfw7jJ+/1iU7A6v28JD5LUX\r\nD+Q6kqrSXgKkzXU4DzEKFyoaFyaLhpmSWfYurKMRTEsidlT8bOmtBT973kFC\r\nFwvcoDpQm7Caw1vBxBWhwVVcqa0HSsF3JCQ=\r\n=A0Wo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aflotten","email":"anders3835@hotmail.com"},"maintainers":[{"name":"aflotten","email":"anders3835@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1665793353662_0.28957423954772477"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-15T00:22:33.591Z","1.0.0":"2022-10-15T00:22:33.876Z","modified":"2022-10-15T00:22:33.983Z"},"maintainers":[{"name":"aflotten","email":"anders3835@hotmail.com"}],"description":"A function library inspired by Lodash, that contains many useful functions and assertions.","homepage":"https://github.com/aflotten/lotide#readme","repository":{"type":"git","url":"git+https://github.com/aflotten/lotide.git"},"author":{"name":"@aflotten"},"bugs":{"url":"https://github.com/aflotten/lotide/issues"},"license":"ISC","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 @aflotten/lotide`\n\n**Require it:**\n\n`const _ = require('@aflotten/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`: A function that returns true or false depending on whether two given arrays are identical or not.\n* `eqObjects`: A function that returns true or false depending on whether two given objects are identical or not.\n* `assertArraysEqual`: An assertion function to print out a success or fail message if two arrays are equal or not (requires eqArrays function).\n* `assertEqual`: An assertion function to print out a success or fail message if two given parameters are identical (no type coercion).\n* `assertEqualObjects`: An assertion function to print out a success or fail message if two given objects are identical (requires eqObjects function)\n* `countLetters`: A function that takes in a string as a parameter an emits an object containing each character and how many times they appeared in the string.\n* `countOnly`: Similar to countLetters, this function takes in two paramters of 'all items' and 'itemsToCount' to return how many times the 'itemsToCount' appears in 'all items'.\n* `findKey`: A function that takes in an object and a callback function. If the callback function is true at a given key of the object, it will return that key.\n* `findKeyByValue`: A function that takes in an object and a given value, where if the value matches a key in the object, it will return that key.\n* `flatten`: A function that takes in an array with nested arrays and will return one array with all values on the same level (Up to one level of nested arrays).\n* `head`: A function that returns the first value in an array.\n* `letterPositions`: A function that takes in a string and returns the charcters within that string and at what idex they appear at in the string. \n* `map`: A function that takes in an array and a callback function. It will modify the array with the callback function and then return the new array.\n* `middle`: A function that will return the value in an array at the very middle index. For even length arrays it will return the the middle two values.\n* `tail`: A function that will return all the values of the array with the exemption of the very first value. \n* `takeUntil`: A function that takes in an array and a callback function. The function will push the items of the array to a new one until the callback function executes and it will terminate.\n* `without`: A function that takes in a source array and an itemToRemove argument. It will return a new array without the itemToRemove value. ","readmeFilename":"README.md"}