{"id":18152249,"url":"https://github.com/bsdelf/scripts","last_synced_at":"2025-04-06T23:45:58.706Z","repository":{"id":141769211,"uuid":"70147280","full_name":"bsdelf/scripts","owner":"bsdelf","description":"Scripts, might be helpful.","archived":false,"fork":false,"pushed_at":"2021-09-01T03:43:27.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T05:44:53.546Z","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/bsdelf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-06T11:21:46.000Z","updated_at":"2021-09-01T03:43:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"60cd213b-2ff4-4234-a3d2-ff94b575c54e","html_url":"https://github.com/bsdelf/scripts","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/bsdelf%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsdelf%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsdelf%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsdelf%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsdelf","download_url":"https://codeload.github.com/bsdelf/scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569130,"owners_count":20959758,"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-11-02T02:06:08.893Z","updated_at":"2025-04-06T23:45:58.684Z","avatar_url":"https://github.com/bsdelf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scripts\nScripts, might be helpful.\n\n## online.js\n\nStrip leading \"./\" for the output of `find` command:\n\n```sh\nfind . | online.js \"({line}) =\u003e line.replace(/^.\\//, '')\"\n```\n\nGet the third column for the output of `wc` command:\n\n```sh\nwc README.md | online.js \"({columns}) =\u003e columns[2]\"\n```\n\nCount word frequency:\n\n```sh\necho 'a\\nb b\\nc c c\\nd d d d' | online.js \"({columns, context}) =\u003e columns.forEach(word =\u003e context[word] = (context[word] \u003e\u003e\u003e 0) + 1)\" \"context =\u003e context\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsdelf%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsdelf%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsdelf%2Fscripts/lists"}