{"_id":"@bluedev773/lotide","_rev":"1-43e095fec7548314d1db992594a497d1","name":"@bluedev773/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bluedev773/lotide","version":"1.0.0","description":"JavaScript library of utility functions. Lodash clone.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/bluedev773/lotide.git"},"author":{"name":"Matthew Litvinov","email":"matthew.litvinov@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/bluedev773/lotide/issues"},"homepage":"https://github.com/bluedev773/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"gitHead":"3d3f9c2103af74c4d7e690fa74ce50c04a6a9cf2","_id":"@bluedev773/lotide@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2tJbQA+yHyVi6WFIr5R5ftTMJHuLE6gQeBtIbPdUMxL8f4IxjyelM4IZihJfxw9zhYwi2FVdEdIFqMrF4CY7dQ==","shasum":"9a028ad0fd22dda1895a2671d108b208c2227688","tarball":"https://registry.npmjs.org/@bluedev773/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":21255,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpXJRCRA9TVsSAnZWagAAxVIP/RxRI6SZJhKTCJ0P7y85\nI5BDbXNLhLZ1OLKs4bxTG0fqZpXSaWM8hmlctbuzld5D1cLWZWqEKG6nsNyX\nZuAXnSvd0KNNIRzgG5GdFBZ9ywPpc2chHglWS3zG9w4G2unW2NS1KPcVlTKT\nFsfIFANDk2c9NGUKomGgU+pMvHBZyRgggsVZkMpMINFJ3UkNk/R1gDxqFwpI\ntThQzQ3VAmxD4AAhLlRbkrthjfRN2wyh/2MY9IcoNIge2hSc1PkD0MCBqXou\nVXuULEhTrIc72sbAWgElV0qj6jTaa3s9LzXjTBsEfUuf9Q+pROuGxrt3M4GR\nNNhMNgLO8BL3k0633jLu/FZ0WK0XAsZRntxUFiaUOfip7lRFkpJfVzMWrUja\n8Pzw26Qm3EnbV+gsV0SEXnHyV5w8xLTQ5uhLR3JYmW7eZca7c0hH5z68S0BS\nAkpMEOPOXT3cR88yGN8U2RzPT9tg4IuttJ6hffizf7GsxWWXJm3sU2qWER/Y\nNb6WlZO7k2EOQHydWDnXq6+7p87GrWFDorwl1bofRjKVbMWh4JZ1DFdI5aMW\nT1bLpGOsQd6NZEmyC33IzMB0hM/z0kDcW9j+oyoUmJTe9t0xu8UIulAFdYZH\nBeBzyJnN4Iv/SzulGMbDFRdGngcwvVOQ6iRwPxWEeh66xdRF1U7WmvsZgbde\nHLZS\r\n=GX2E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBFM1KQWQFUlpd4wU6VhLif5QjG9OTXylkLZd6x2rBCAiBB9kLi76FGI+W6GXADdtND8zra/3/351hILL0HpZ9KOw=="}]},"_npmUser":{"name":"bluedev773","email":"matthew.litvinov@gmail.com"},"maintainers":[{"name":"bluedev773","email":"matthew.litvinov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1638232656986_0.09354539965405628"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-30T00:37:36.942Z","1.0.0":"2021-11-30T00:37:37.194Z","modified":"2022-04-04T19:46:45.627Z"},"maintainers":[{"name":"bluedev773","email":"matthew.litvinov@gmail.com"}],"description":"JavaScript library of utility functions. Lodash clone.","homepage":"https://github.com/bluedev773/lotide#readme","repository":{"type":"git","url":"git+https://github.com/bluedev773/lotide.git"},"author":{"name":"Matthew Litvinov","email":"matthew.litvinov@gmail.com"},"bugs":{"url":"https://github.com/bluedev773/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 @bluedev773/lotide`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@bluedev773/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(arrOne, arrTwo)`: determines if two arrays are equal\r\n* `assertEqual(actual, expected)`: determines if two operands are equal\r\n* `assertObjectsEqual(objOne, objTwo)`: determines if two objects are equal\r\n* `countLetters(string)`: counts letters in a string\r\n* `countOnly(arr, itemsToCount)`: counts specified items in array\r\n* `findKey(object, callback)`: return key specified by callback function\r\n* `findKeyByValue(object, value)`: return key specified by value \r\n* `flatten(arr)`: remove nested arrays and return all elements as a single array\r\n* `head(arr)`: return first element of array\r\n* `letterPositions(string)`: return object that holds each unique character of the string as a key and an array of indexes to the characters in the string\r\n* `map(arr, callback)`: creates a new array populated with the results of calling a provided function on every element in the calling array\r\n* `middle(arr)`: returns middle of array\r\n* `tail(arr)`: returns tail of array\r\n* `takeUntil(arr, callback)`: returns original array until callback requirement is met\r\n* `without(arr, remove)`: returns array with specified element removed\r\n\r\n","readmeFilename":"README.md"}