{"id":15497164,"url":"https://github.com/jwerle/w625","last_synced_at":"2025-04-22T21:41:20.079Z","repository":{"id":22547045,"uuid":"25888017","full_name":"jwerle/w625","owner":"jwerle","description":"ES6 repl with web page scope","archived":false,"fork":false,"pushed_at":"2015-01-28T16:25:49.000Z","size":220,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T08:41:57.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jwerle.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":"2014-10-28T20:11:02.000Z","updated_at":"2018-12-12T10:00:38.000Z","dependencies_parsed_at":"2022-08-20T19:20:44.115Z","dependency_job_id":null,"html_url":"https://github.com/jwerle/w625","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fw625","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fw625/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fw625/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fw625/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwerle","download_url":"https://codeload.github.com/jwerle/w625/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250330154,"owners_count":21412939,"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":[],"created_at":"2024-10-02T08:31:15.961Z","updated_at":"2025-04-22T21:41:20.060Z","avatar_url":"https://github.com/jwerle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"w625\n====\n\n**[Deprecated]** ES6 repl with web page scope\n\n## install\n\n```sh\n$ [sudo] npm i w625 -g\n```\n\n## usage\n\n```sh\n$ usage: w625 [-hV] [src] [--script=script]\n```\n\n## why ?\n\n**6to5 NOW supports what this module intended to fix. DO NOT USE**\n\n~~I wanted to use es6 ***NOW*** in a repl and couldn't find any solutions\nout there. [6to5](https://github.com/sebmck/6to5) is great ! However, you\ncurrently cannot maintain state in their repl implementation. See below\nfor an example:~~\n\n```js\n$ 6to5-node\n\u003e let foo = 123;\n'use strict'\n\u003e console.log(foo);\nReferenceError: foo is not defined\n    at repl:2:1\n    at _eval (/usr/local/lib/node_modules/6to5/bin/6to5-node:40:13)\n    at REPLServer.replEval [as eval] (/usr/local/lib/node_modules/6to5/bin/6to5-node:78:14)\n    at Interface.\u003canonymous\u003e (repl.js:239:12)\n    at Interface.emit (events.js:95:17)\n    at Interface._onLine (readline.js:202:10)\n    at Interface._line (readline.js:531:8)\n    at Interface._ttyWrite (readline.js:760:14)\n    at ReadStream.onkeypress (readline.js:99:10)\n    at ReadStream.emit (events.js:98:17)\n```\n\n## example\n\n### using w625 as an es6 repl\n\n```js\n$ w625\ndom\u003e let curry = f =\u003e a =\u003e b =\u003e f(a, b)\nundefined\ndom\u003e let add = curry((a, b) =\u003e a + b)\nundefined\ndom\u003e let addTwo = add(2);\nundefined\ndom\u003e addTwo(2)\n4\n```\n\n### using w625 with a scoped webpage\n\n```js\n$ w625 http://littlstar.com\ndom\u003e Array.prototype.forEach.call(document.getElementsByTagName('a'), node =\u003e console.log(node.href))\nhttps://littlstar.com/\nhttps://littlstar.com/#home\nhttps://littlstar.com/#about\nhttps://littlstar.com/#contact-form\nhttps://www.facebook.com/pages/Littlstar/505243059555239\nhttps://twitter.com/littlstarmedia\nhttps://plus.google.com/+Littlstar/posts\nhttp://littlstar.com/\n```\n\n### using w625 with a scoped webpage and script\n\n```js\n$ w625 https://github.com --script=http://code.jquery.com/jquery.js\ndom\u003e void $('a').each((i, a) =\u003e console.log(a.href));\nhttps://github.com/#start-of-content\nhttps://github.com/\nhttps://github.com/join\nhttps://github.com/login\nhttps://github.com/explore\nhttps://github.com/features\nhttps://enterprise.github.com/\nhttps://github.com/blog\nhttps://help.github.com/terms\nhttps://help.github.com/privacy\nhttps://github.com/plans\nhttps://github.com/features\nhttps://github.com/explore\nhttps://github.com/integrations\nhttps://central.github.com/mac/latest\nhttp://mac.github.com/\n...\n```\n\n## license\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Fw625","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwerle%2Fw625","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Fw625/lists"}