{"_id":"@asiddev/lotide","name":"@asiddev/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@asiddev/lotide","version":"1.0.0","description":"a useful testing library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Asiddev/lotide.git"},"author":{"name":"Alexander Sidorenko"},"license":"ISC","bugs":{"url":"https://github.com/Asiddev/lotide/issues"},"homepage":"https://github.com/Asiddev/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"50f2bb18eff937ae0f6c4917b9a2795eab05ba5f","_id":"@asiddev/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-giEmZra7z9qMLptjJVaAdq4PLYU+AYlU995+Fyx2X57COrQ/NCySJIls5Dmb34yZhj0CmADCUF/NHZbidpcmhA==","shasum":"52ec5c1647b4fe2ff5f5bafa2468533df033de0c","tarball":"https://registry.npmjs.org/@asiddev/lotide/-/lotide-1.0.0.tgz","fileCount":28,"unpackedSize":27221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBrMfCkM5/q6uPi9sVlwSW+Cs27wYQ4ZyljIjaLPOV2gIgc/8O2/R06PbehO8JBhMZtGyQe6WUkxAVwnh5wum6B/8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMVYQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpO2Q/+Mvep3KUS+L7F7V7WvoRCx4whaxxBqYGiolK0Xes6HilOs8Ih\r\nWd6RXArek24361vi3dteamdwqedwr9gjEPQ3OeeVuH6Sl9xjLcAkcHohqPK5\r\nVeT4sOuvQ6W1hKlP3Tm+GTOUPRfwdtb7LHN+Al6IEFSllcqKpMj7kP5LhPwx\r\nG8zNhbP0y7Vw/z5QPL9PrUUihpV7HYzrhGHytAlL5Tl8a6lNpmgkCI31kAnT\r\nhlueaCjYaXf0XhKSAyluXOaHU73EBC2GW3A+4vtfotxP+zH/1C0c+i/OmdlZ\r\nB3Lx+wZrHivRC55jwQZDYmGV1goKYbm1230xzSdLLQuuklMTkwh3T+OX5bbX\r\nT2Vp4afgihYQiN5dmyWtmznh1h+HSvIc938fpcFRrDJaSe84xB4g39Z/8KJB\r\ndjt4o1kva37l+Wvj8dXdoY35Kx7tcwsDfTWk7Rx21YA1K+6vOFdSlykZqnvg\r\nwhQOohVTy97zRLZqYDl4MAl0E4rCMd8VWUh/uUiNSQjb45UltjehCvwvcWXV\r\nVRC2gdvwoj//jaWsDqe5Z2/jGbxpHS+e90DH55xVfkrb34ykN8sYWMpo1toL\r\nZ8WVWMWTaR3yxnoZyrngwMnogAgscv/jacQBIqxeePE0+TSPztvc0rfUnh8R\r\neAw0ApP/mAxn7RSVLXXY3X7hYboa3osiQjM=\r\n=MwYB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"asiddev","email":"asiddev@protonmail.com"},"maintainers":[{"name":"asiddev","email":"asiddev@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1664177679996_0.8964959105524914"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-26T07:34:39.942Z","1.0.0":"2022-09-26T07:34:40.183Z","modified":"2022-09-26T07:34:40.305Z"},"maintainers":[{"name":"asiddev","email":"asiddev@protonmail.com"}],"description":"a useful testing library","homepage":"https://github.com/Asiddev/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Asiddev/lotide.git"},"author":{"name":"Alexander Sidorenko"},"bugs":{"url":"https://github.com/Asiddev/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 @asiddev/lotide`\n\n**Require it:**\n\n`const _ = require('@asiddev/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- `function without : removes all items from source\n- `function takeUntil: accepts an array and a callback function and runs each array element through the function, returning an array with all the items from the original array until the callback provided returns a truthy value\n- `function middle: accepts an array and returns the middle element or elements as an array\n- `function map: accepts an array and a function, and creates a new array with the results of calling the provided function on each element in the input array\n- `function letterPositions: accepts a string and returns an object with all of the indices in the string where each character was found\n- `function head: accepts an array and returns the first element\n- `function flatten: accepts an array where some elements may also be arrays and returns a single array with no inner arrays (a \"flattened\" version of the input array)\n- `function findKeyByValue: accepts an object and a value: scans the object and returns the first key which contains the given value\n- `function findKey: accepts an object and a callback function: scans the object and returns the first key for which the callback function returns a truthy value\n- `function eqObjects: accepts two objects and returns true or false based on if they are equal\n- `function eqArrays: accepts two arrays and returns true or false based on if they are equal\n- `function countOnly: accepts a string and returns an object with key value pairs to denote each character in the string, and the number of times it occured in the string\n- `function countLetters: accepts a string and returns an object with key value pairs to denote each character in the string, and the number of times it occured in the string\n- `function assertObjectsEqual: accepts two objects and returns true or false based on if they are equal\n- `function assertEqual: accepts two strings and returns true or false based on if they are equal\n- `function assertArraysEqual: accepts two arrays and returns true or false based on if they are equal\n- `function tail: accepts an array and returns the same array, but with the first element removed\n","readmeFilename":"README.md"}