{"id":20596067,"url":"https://github.com/davidfig/json-depth","last_synced_at":"2025-03-06T15:16:40.745Z","repository":{"id":57114210,"uuid":"152006238","full_name":"davidfig/json-depth","owner":"davidfig","description":"Prettify JSON for output with a number of options, including inlining after a set depth","archived":false,"fork":false,"pushed_at":"2018-10-08T02:16:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T09:18:29.159Z","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/davidfig.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":"2018-10-08T02:16:30.000Z","updated_at":"2018-10-08T02:16:43.000Z","dependencies_parsed_at":"2022-08-22T03:00:14.305Z","dependency_job_id":null,"html_url":"https://github.com/davidfig/json-depth","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/davidfig%2Fjson-depth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fjson-depth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fjson-depth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fjson-depth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfig","download_url":"https://codeload.github.com/davidfig/json-depth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231436,"owners_count":20093636,"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-16T08:15:02.251Z","updated_at":"2025-03-06T15:16:40.717Z","avatar_url":"https://github.com/davidfig.png","language":"JavaScript","readme":"# json-depth\n\n\n## rationale\n\nI wanted to remove semicolons from all my old files. And after looking through too many complicated es-beautifiers, I decided to write a dirty and stupid program.\n\n## WARNING\n\nThis is a very stupid program designed for how I write code. Read how it works before using:\n\n1. Read each line in a file (not each parsed javascript code line, but each \"physical\" line)\n2. If the line has only one semicolon then remove the semicolon\n3. If the line has more than one semicolon then leave all the semicolons (covers for(;;) usage) except a semicolon as the final character in a line\n4. Overwrite original file unless -o is provided\n\nThat's it. \n\n## installation\n\n    npm i dirty-semicolons\n\n## command-line options\n\n    $ dirty-semicolons --help\n\n    Usage: index [options] \u003cfile...\u003e\n\n    Quick and dirty semicolon remover for javascript. WARNING: does not use a real parser. See https://github.com/davidfig/dirty-semicolons\n\n    Options:\n\n        -V, --version  output the version number\n        -o, --output   Output file (default is to overwrite original file)\n        -h, --help     output usage information\n\n## API\n```\n/**\n * remove semicolons from a file\n * @param {string} filename\n * @param {string} [output] filename (uses filename if not provided)\n * @param {function} [callback] callback when complete\n */\nmodule.exports = function(file, output, callback)\n```\n## license  \nMIT License  \n(c) 2017 [YOPEY YOPEY LLC](https://yopeyopey.com/) by [David Figatner](https://twitter.com/yopey_yopey/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Fjson-depth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfig%2Fjson-depth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Fjson-depth/lists"}