{"id":23410868,"url":"https://github.com/adenekan41/helpers","last_synced_at":"2025-04-12T03:22:59.679Z","repository":{"id":42853653,"uuid":"237812300","full_name":"adenekan41/helpers","owner":"adenekan41","description":"🛠 A collection of utility functions for Javascript development.","archived":false,"fork":false,"pushed_at":"2023-01-06T04:56:11.000Z","size":364,"stargazers_count":9,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T22:51:29.899Z","etag":null,"topics":["helper-functions","helpers","javascript-development"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/codewonders-helpers","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adenekan41.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-02T17:58:27.000Z","updated_at":"2022-08-01T04:37:13.000Z","dependencies_parsed_at":"2023-02-05T09:00:17.910Z","dependency_job_id":null,"html_url":"https://github.com/adenekan41/helpers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adenekan41%2Fhelpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adenekan41%2Fhelpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adenekan41%2Fhelpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adenekan41%2Fhelpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adenekan41","download_url":"https://codeload.github.com/adenekan41/helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248017994,"owners_count":21034042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["helper-functions","helpers","javascript-development"],"created_at":"2024-12-22T17:52:46.122Z","updated_at":"2025-04-12T03:22:59.638Z","avatar_url":"https://github.com/adenekan41.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Codewonders](https://i.ibb.co/JtYZKpc/Group-10-2-1.png)\n\n# Codewonders Helpers [![npm](https://badge.fury.io/js/codewonders-helpers.svg)](https://www.npmjs.com/package/codewonders-helpers)\n\n[![NPM](https://nodei.co/npm/codewonders-helpers.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/codewonders-helpers/)\n\nThis is a small helpers utility functions for javascript development. In here\nare the regular functions i use in my development feel free to contribute.\n\n## Helper Functions\n\n### _Array Helpers_\n\n- arrayRandomItem - This allows you pick a random item in an array see more\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/array-helpers.js)\n\n- arrayPickOne - This allows you pick a random item with its index in an array\n  see more\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/array-helpers.js)\n\n- arrayShuffleItems - This allows you to switch array index on document loaded\n  in an array see more\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/array-helpers.js)\n\n- arrayRemove - This allows you to remove item from with a `cb` an array see\n  more\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/array-helpers.js)\n\n- join - This allows you to join items in an array with different seperators\n  `start` and `end` in an array see more\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/array-helpers.js)\n\n### _Bind Helper_\n\n- bind - This allows you to bind functions / curried functions see more\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/bind.js).\n  takes in `fn` , `context` , `boundArgs`\n\n### _Collect Into Helper_\n\n- collectInto - This collects functions into with an argument\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/collect-into.js).\n  takes in `args`\n\n### _Cookie To Object Helper_\n\n- cookieToObject - Converts cookie to object\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/cookies-to-object.js).\n  takes in `cookie`\n\n### _Countries Helpers_\n\n- countries-by-calling-code - Gets country and their call codes\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/countries-by-calling-code.js).\n\n- countries-by-curreny-code - Gets country and their currency codes\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/countries-by-curreny-code.js).\n\n- countries-by-states - Gets country and their states\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/countries-by-states.js).\n\n### _Encode and Decode_\n\n- encode - encodes string to base 64\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/encode-decode.js).\n  takes in `string`\n\n- decode - decodes encoded string from base 64\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/encode-decode.js).\n  takes in `string`\n\n- utf8encode - encodes string to utf8\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/encode-decode.js).\n  takes in `string`\n\n* utf8decode - decodes encoded string from utf8\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/encode-decode.js).\n  takes in `string`\n\n### _Cookie To Object Helper_\n\n- getRandomColor - returns random color\n  [here](https://github.com/adenekan41/helpers/blob/master/src/helpers/get-random-colors.js).\n  returns color in `HEX`\n\n\u003e Still documenting :)\n\n## Install\n\n```sh\n$ npm install codewonders-helpers --save\n```\n\n## Usage\n\nGetting familiar with the package and you want to use some helper functions like\n`isEmpty`, `isJsonString` ,`pxToRem` helpers and e.t.c you can easily just\nexport them the following ways.\n\n```js\nimport { isEmpty } from 'codewonders-helpers';\n```\n\nAll methods are exported as a flat namesapce so you can also call them like this\n\n```js\nimport isEmpty from 'codewonders-helpers/bundle-es/is-empty';\n```\n\nor\n\n```js\nvar isEmpty = require('codewonders-helpers');\n```\n\nand then we have the exported helpers and can already do this\n\n```js\nisEmpty({});\n// =\u003e true\n```\n\n\u003e MIT © [codewonders.dev](https://codewonders.dev) \u0026nbsp;\u0026middot;\u0026nbsp; GitHub\n\u003e [@adenekan41 / codewonders](https://github.com/adenekan41) \u003e\n\u003e \u0026nbsp;\u0026middot;\u0026nbsp;\n\n\u003c!-- {blockquote: style='display:none'} --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadenekan41%2Fhelpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadenekan41%2Fhelpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadenekan41%2Fhelpers/lists"}