{"id":20372845,"url":"https://github.com/sidmishraw/jsrambler","last_synced_at":"2025-12-03T11:03:48.937Z","repository":{"id":86400599,"uuid":"93208747","full_name":"sidmishraw/jsrambler","owner":"sidmishraw","description":"The rambler, a Friday fun project in ES5","archived":false,"fork":false,"pushed_at":"2017-06-04T21:42:26.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T06:48:35.906Z","etag":null,"topics":["base-conversion","es5-javascript","funny","pokemonapi","pokepoke","rambler"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidmishraw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-02T22:37:10.000Z","updated_at":"2017-06-04T21:43:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"8df34b14-b164-402d-a0b5-cf8a58e64203","html_url":"https://github.com/sidmishraw/jsrambler","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/sidmishraw%2Fjsrambler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Fjsrambler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Fjsrambler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Fjsrambler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidmishraw","download_url":"https://codeload.github.com/sidmishraw/jsrambler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241921836,"owners_count":20042763,"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":["base-conversion","es5-javascript","funny","pokemonapi","pokepoke","rambler"],"created_at":"2024-11-15T01:15:13.651Z","updated_at":"2025-12-03T11:03:48.867Z","avatar_url":"https://github.com/sidmishraw.png","language":"JavaScript","readme":"# The Rambler and PokePoke\n\nA friday fun project. \n\n## Rambler\nIt \"**rambles**\" the string passed in.\n\nRambles is just my word for converting the string based on a particular base.\n\n      Minimum base = 2\n      Maximum base = 36\n\nUsage:\n\n```javascript\nconst rambler = require(\"./rambler.js\");\n        \n// The namespace is bulbasaur\n// you need to use `bulbasaur` to access the module's\n// functions\nrambler.bulbasaur.test(\"hey\", 36);              // output: HEY\n\nrambler.bulbasaur.test(\"8\", 2);                 // output: 1000\n\nrambler.bulbasaur.test(\"duck your head\", 16);   // output: D1EC1422181E1B11EAD\n\nconsole.log(\"charset for base 12 = \", rambler.bulbasaur.charSet(12));\n// output: charset for base 12 =  [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B' ]\n\nconsole.log(rambler.bulbasaur.convertToBase(\"bulbasaur\", 2));\n// output: 10111111010101101110101110010101111011011\n```\n\n### Methods of bulbasaur:\n* `rambler.bulbasaur.charSet( base )` : **base** is an integral number.\n\n* `rambler.bulbasaur.convertToBase(inputString, base)` : **inputString** is \nthe input string and **base** is an integral number, the base you want the \nstring to be rambled into. It returns the rambled string.\n\n* `rambler.bulbasaur.test(inputString, base)` : prints the rambled string to \nthe console. Just a test method.\n\nPlease refer to the [main.js](./main.js) for a better example.\n\n###### JS version: ES5\n\n## PokePoke\n\nIt **pokemonizes** the input string.\nThe names are fetched from the [pokeapi](http://pokeapi.co/).\n\nThis uses NodeJS for fetching data from the API server.\n\nPlease use it with caution since the API server often crashes.\n\nUsage:\n```javascript\nconst pokepoke = require(\"./pokepoke\");\n\n// call the callback function after making the pokemonname string\n// with the console.log in it.\npokepoke.pokepoke.pokemonize(\"Hey there, get here!\", function (data) {\n\n    console.log(\"Pokemonized String = \" + data);\n});\n```\n```\n// output:\nPokemonized String = Koffing^(*_*)^Cottonee^(*_*)^Clefairy^(*_*)^Floette^(*_*)^Golem^(*_*)^Mewtwo^(*_*)^Groudon^(*_*)^Pidgey^(*_*)^Grovyle^(*_*)^Mienfoo^(*_*)^Krookodile^(*_*)^Golbat^(*_*)^Klefki^(*_*)^Weepinbell^(*_*)^Buizel^(*_*)^Mr-mime^(*_*)^Cranidos\n```\n###### JS version: ES5\n###### NodeJS: v7.10.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidmishraw%2Fjsrambler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidmishraw%2Fjsrambler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidmishraw%2Fjsrambler/lists"}