{"_id":"@anacko/lotide","_rev":"2-57fc30cad5b68ba1b371f4ff0b2a38eb","name":"@anacko/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anacko/lotide","version":"1.0.0","description":"Lotide: A mini clone of the [Lodash](https://lodash.com) library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/anacko/lotide.git"},"author":{"name":"Ana Carolina K"},"license":"ISC","bugs":{"url":"https://github.com/anacko/lotide/issues"},"homepage":"https://github.com/anacko/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1"},"gitHead":"db1e5e3aed0097ad667e931c43f77b1e16c68aba","_id":"@anacko/lotide@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Bmhn+PO3jk6wKAJbqaTINZEQg8NATSAbiTTT2J44zIsKf1RWxhryvlWzMredC/5HaxdvcdvIQ4gwPTKGyDZKqw==","shasum":"3f0c72c053c5b0f98f79d53a2186a89e23da1a3a","tarball":"https://registry.npmjs.org/@anacko/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":27810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFSXCRA9TVsSAnZWagAASaQP/31Veqd7iQ12v94NQrBU\nzHsl/uZAelYVU/UnF0Vpyw7KlfLW7Y1ghcVzQTVPlXJtHDXQyFyk2MSE4taQ\nRxFaes+yL+5pfM4XE1V0G5BuW33lsj1l0OM5TAFr2mM4AjNStZSxTVEvRI2v\nlebq6amX7Ehkug69PTPkSUcINDzqK2EB+ENvLwrQaEbRmRIm4+JHwqndmaCV\nMUs4ywsTY0L91txNh4FlgqmMRAtVC9M+wkwgtc/rj+NIme0nBFbxXtNBAHRM\nsM0X9NfJE4Dh7A16/jC7f/K+4sfR/MSPmLwjaPuHsBywmfcCiRWn8ACLA62Q\nSvow3ZQ4t9SYHf4qeZ7cobOhpQSMfbFfKwK6C6oc912Ml+gEhRqveJa2yPHE\nIP/wPpHIWBdNOYglzl8uU+SQc/nl5oA3RTTVB/RgYBlWcbOc9swujw/0GTpt\nnkvFchcxpQEWAdiUbu/LoEoOr16hLTJkizJ8kh+MxZZzXkiu7Pu764Isxe1m\nRRJ+dzz6dIV89tO9vZ1zPOqqBx4sYbhTM5aiqPF8HMkCVmQsxSTWp3GlfXgT\nuSyGuviPolIad4/1FFYiLybdxC/v63DOO6LzVtFdUvmuCSmqeR+Y80X0ESvZ\n1FdJ5lANvF8h4dBUIemf6/fFk+u1J08y9/pNJ1evUH5MzYd8Avu8uybms7nG\n7G0n\r\n=qYL/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/Up1GJpml0Yx/3yYJtld6O2rfoKeBY8PABtGbkuYSKAiBE7TfQsHqmzxPvCtHgJl22Lp8F9xO9gVQVfAGJPK+QWQ=="}]},"_npmUser":{"name":"anacko","email":"anacko@gmail.com"},"maintainers":[{"name":"anacko","email":"anacko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1632187311435_0.6637191655779273"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-21T01:21:51.373Z","1.0.0":"2021-09-21T01:21:51.603Z","modified":"2022-04-04T13:53:42.188Z"},"maintainers":[{"name":"anacko","email":"anacko@gmail.com"}],"description":"Lotide: A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/anacko/lotide#readme","repository":{"type":"git","url":"git+https://github.com/anacko/lotide.git"},"author":{"name":"Ana Carolina K"},"bugs":{"url":"https://github.com/anacko/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 @anacko/lotide`\n\n**Require it:**\n\n`const _ = require('@anacko/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* `countLetters(str)`: returns (object) how many times each letter appears in a string.\n* `countOnly(allItems, itemsToCount)`: returns how many times each item in itemsToCount occurs in main list of all items.\n* `eqArrays(a, b)`: compares if two arrays *a* and *b* are equal, by the element\n* `eqObjects(object1, object2)`: compares if two objects are equal, by the element\n* `findKey(obj, callback)`: returns the key from an object depending on defined criteria by a callback function\n* `findKey(obj, val)`: returns the key from an object defined by its value\n* `head(arr)`: gives the first element of an array\n* `letterPositions(sentence)`: returns an object with the positions of each letter in a sentence\n* `map(array, callback)`: returns an array with the result of the callback function applied on each element of the array\n* `middle(arr)`: returns the midlle element of an array. If length is even, returns an array with the two elements in the middle.\n* `tail(arr)`: returns the array without its first element\n* `takeUntil(array, callback)`: returns the elements of an array from the beginning until the criteria defined by the callback is true\n* `without(source, itemsToRemove)`: returns the source array without the items listed in itemsToRemove","readmeFilename":"README.md"}