{"analyzedAt":"2022-07-08T20:51:10.513Z","collected":{"metadata":{"name":"lamed_string","scope":"unscoped","version":"1.11.18","description":"String functions","date":"2020-01-17T18:11:36.841Z","author":{"name":"Perez Lamed van Niekerk"},"publisher":{"username":"perezlamed","email":"perez.lamed.vanniekerk@gmail.com"},"maintainers":[{"username":"perezlamed","email":"perez.lamed.vanniekerk@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/perezLamed/lamed_string.git"},"links":{"npm":"https://www.npmjs.com/package/lamed_string"},"license":"MIT","dependencies":{"chalk":"3.0.0","io_format":"^1.2.9","lamed_core":"^1.8.22","lamed_test":"^2.11.26","ltype_boolean":"^0.0.7"},"releases":[{"from":"2022-06-08T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":0},{"from":"2022-04-09T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":1},{"from":"2022-01-09T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":1},{"from":"2021-07-08T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":1},{"from":"2020-07-08T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":1}],"deprecated":"Moved to ltype_string","hasTestScript":true,"readme":"# lamed_string\r\n\r\n>**AS A** <u>\"JavaScript developer\"</u>\r\n**I WANT TO HAVE** <u>\"I want to manage string function in one place\"</u>\r\n**SO THAT I CAN** <u>\"reap the benefit in all projects\"</u>\r\n\r\nPart of [See it Done](https://github.com/perezLamed/see_it_done)\r\n\r\n[![npm](https://img.shields.io/npm/v/lamed_string.svg)](https://www.npmjs.org/package/lamed_string)\r\n[![downloads](http://img.shields.io/npm/dt/lamed_string.svg?style=flat)](https://www.npmjs.org/package/lamed_string)\r\n[![Build Status](https://travis-ci.org/perezLamed/lamed_string.svg?branch=master)](https://travis-ci.org/perezLamed/lamed_string)\r\n[![codecov](https://codecov.io/gh/perezLamed/lamed_string/branch/master/graph/badge.svg)](https://codecov.io/gh/perezLamed/lamed_string)\r\n[![CodeFactor](https://www.codefactor.io/repository/github/perezlamed/lamed_string/badge)](https://www.codefactor.io/repository/github/perezlamed/lamed_string)\r\n[![Code size](https://img.shields.io/github/languages/code-size/perezLamed/lamed_string.svg?style=flat)](https://github.com/perezLamed/lamed_string)\r\n[![license](https://img.shields.io/github/license/perezLamed/lamed_string.svg?style=flat)](https://github.com/perezLamed/lamed_string)\r\n\r\n[![NPM](https://nodei.co/npm/lamed_string.png?downloads=true&downloadRank=true)](https://nodei.co/npm/lamed_string/)\r\n\r\n[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)\r\n\r\n## Install\r\n### [npm](https://www.npmjs.com/package/lamed_string)\r\n`npm i lamed_string -s`\r\n\r\n### yarn\r\n`yarn add lamed_string`\r\n\r\n## Usage\r\n### Node\r\n```\r\nconst _lstring = require('lamed_string');\r\n```\r\n\r\n- [Function documentation](doc/functions.md)\r\n\r\n## Array Functions\r\n\r\n| Functions | Description |\r\n| ----- | -----|\r\n| [Array.**replaceAll**(find, replace)](#replaceAll) | Replace all occurrences of a string in an array. \r\n| [Array.**toLowerCase**()](#toLowerCase)            | Change array elements to lower case.\r\n| [Array.**toUpperCase**()](#toUpperCase)          | Change array elements to upper case.\r\n| Array.**includesAny**('???')                      | Removes all occurrences of a set of strings in an array\r\n| Array.**removeAny**(Array)                        | Removes all occurrences of a set of strings in an array\r\n  \r\n ## Other functions \r\n| Functions | Description |\r\n| ----- | -----|\r\n| ['???'.**includeAll**(???)](#includeAll)         | Test if all argument items are included in String. If argument is array, the array items will be used.\r\n| ['???'.**includeAny**(???)](#includeAny)         |Test if any argument items are included in String. If argument is array, the array items will be used.\r\n| '???'.**replaceAll**(find, replace)                            | Replace all occurrences of a string\r\n| Date.**toStr**('/')                                | Outputs the date as yyyy/mm/dd\r\n| [**substring_BetweenChars**(str, strStart, strEnd)](#substring_BetweenChars) | Returns from **str** the string between **srtStat** and **strEnd**. \r\n  **object2Str**(object, format = false) | Convert object to string; **@param format** - if true then format the object string\r\n\r\n  \r\n## Description\r\n\r\n<a name = \"replaceAll\"></a>\r\n### '???'.replaceAll(find, replace)\r\n- Replace all occurrences of a string in an array.\r\n\r\n| Parameter | Description |\r\n|-----------|-------------|\r\n| find | The string to search for\r\n| replace | The string to replace all occurances with\r\n \r\n`'hello, there, my, pet.'.replaceAll(',', '');   // hello there my pet.`\r\n \r\n----\r\n\r\n<a name = \"toLowerCase\"></a>\r\n### '???'.toLowerCase()\r\n- Change array elements to lower case.\r\n\r\n`'HELLO, THERE, MY, PET.'.toLowerCase(',', '');   // hello, there, my, pet.` \r\n\r\n----\r\n\r\n<a name = \"toUpperCase\"></a>\r\n### '???'.toUpperCase()\r\n- Change array elements to upper case.\r\n\r\n`'hello, there, my, pet.'.toUpperCase(',', '');   // HELLO, THERE, MY, PET.` \r\n\r\n----\r\n\r\n<a name = \"includeAll\"></a>\r\n### '???'.includeAll()\r\n- Test if all argument items are included in String. If argument is array, the array items will be used.\r\n\r\n```js\r\n    /* string parameter */\r\n    \"absdefg_aa_bb\".includesAll();                  //false\r\n    \"absdefg_aa_bb\".includesAll('');                //true  - This is useful when search items are not provided\r\n    \"absdefg_aa_bb\".includesAll(undefined);         //false\r\n    \"absdefg_aa_bb\".includesAll(null);              //false\r\n    \"absdefg_aa_bb\".includesAll('a');               //true\r\n    \"absdefg_aa_bb\".includesAll('a', 'z');          //false\r\n    \"absdefg_aa_bb\".includesAll('a', 'aa');         //true\r\n    \"absdefg_aa_bb\".includesAll('a', 'aa', 'bb');   //true\r\n    \r\n    /* array parameter */\r\n    \"absdefg_aa_bb\".includesAll(['a', 'aa', 'bb']);         //true\r\n    \"absdefg_aa_bb\".includesAll(['a', 'aa', 'bb', '']);     //true\r\n    \"absdefg_aa_bb\".includesAll(['a', 'aa', 'bb', 'dd']);   //false\r\n``` \r\n\r\n\r\n<a name = \"includeAny\"></a>\r\n### '???'.includeAny()\r\n- Test if any argument items are included in String. If argument is array, the array items will be used.\r\n\r\n```js\r\n     /* string parameter */   \r\n    \"absdefg_aa_bb\".includesAny();                      //false\r\n    \"absdefg_aa_bb\".includesAny('');                    //false\r\n    \"absdefg_aa_bb\".includesAny(undefined);             //false\r\n    \"absdefg_aa_bb\".includesAny(null);                  //false\r\n    \"absdefg_aa_bb\".includesAny('a');                   //true\r\n    \"absdefg_aa_bb\".includesAny('a', 'z');              //true\r\n    \"absdefg_aa_bb\".includesAny('a', 'aa');             //true\r\n    \"absdefg_aa_bb\".includesAny('a', 'aa', 'bb', 'g');  //true\r\n    \"absdefg_aa_bb\".includesAny('z');                   //false\r\n    \"absdefg_aa_bb\".includesAny(' ');                   //false\r\n    'ROUTE'.includesAny(' ', '{', ';', '/', ':', '.');  //false\r\n    \r\n    /* array parameter */\r\n    \"absdefg_aa_bb\".includesAny(['a', 'aa', 'bb', 'g']);        //true\r\n    \"absdefg_aa_bb\".includesAny(['a1', 'aa1', 'bb1', 'g']);     //true\r\n    \"absdefg_aa_bb\".includesAny(['a1', 'aa1', 'bb1', 'g1']);    //false\r\n````"},"npm":{"downloads":[{"from":"2022-07-07T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":0},{"from":"2022-07-01T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":121},{"from":"2022-06-08T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":158},{"from":"2022-04-09T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":1000},{"from":"2022-01-09T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":1490},{"from":"2021-07-08T00:00:00.000Z","to":"2022-07-08T00:00:00.000Z","count":3023}],"starsCount":0}},"evaluation":{"quality":{"carefulness":0,"tests":0,"health":0,"branding":0},"popularity":{"communityInterest":0,"downloadsCount":333.3333333333333,"downloadsAcceleration":-0.7549847792998479,"dependentsCount":0},"maintenance":{"releasesFrequency":0.28664383561643836,"commitsFrequency":0,"openIssues":0,"issuesDistribution":0}},"score":{"final":0.12147621907094404,"detail":{"quality":0,"popularity":0.014519017982291086,"maintenance":0.33255589364897764}}}