{"id":18052724,"url":"https://github.com/opensrc0/compressfilesize","last_synced_at":"2025-04-05T07:24:11.460Z","repository":{"id":88965169,"uuid":"103624732","full_name":"opensrc0/compressFileSize","owner":"opensrc0","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-15T06:56:26.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T15:15:14.598Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opensrc0.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}},"created_at":"2017-09-15T06:55:57.000Z","updated_at":"2024-04-10T04:19:15.000Z","dependencies_parsed_at":"2023-06-13T08:30:39.187Z","dependency_job_id":null,"html_url":"https://github.com/opensrc0/compressFileSize","commit_stats":null,"previous_names":["hg-arch/compressfilesize","opensrc0/compressfilesize"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensrc0%2FcompressFileSize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensrc0%2FcompressFileSize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensrc0%2FcompressFileSize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensrc0%2FcompressFileSize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensrc0","download_url":"https://codeload.github.com/opensrc0/compressFileSize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247301771,"owners_count":20916578,"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-30T23:12:57.446Z","updated_at":"2025-04-05T07:24:11.436Z","avatar_url":"https://github.com/opensrc0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compress File Size\n\n\nStep 1:- Install this package using command\n\n    npm i compressfilesize\n\nStep 2:- Include compressfilesize.js in your file\n\nex:- \n            \n    import reduceFileSize from './compressFileSize/index.js'\n\nStep 3:- reduceFileSize is a function in your file which having some parameter, first and second paramenter is mandatory.\n\na) First is the file object to reduce size.\n\nb) Second is call back.\n\nc) Other params are optional, You can checkout compressfilesize.js for pass other params.\n\nex:- \n\n    var fileObj = event.target.file[0];\n\n    reduceFileSize(fileObj, () =\u003e {\n        // Do stuff here after reducing size of file.\n    });","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensrc0%2Fcompressfilesize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensrc0%2Fcompressfilesize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensrc0%2Fcompressfilesize/lists"}