{"id":21088091,"url":"https://github.com/markosko/nativescript-hook-filter-modules","last_synced_at":"2025-05-16T11:32:23.697Z","repository":{"id":57308551,"uuid":"69691207","full_name":"markosko/nativescript-hook-filter-modules","owner":"markosko","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-06T23:22:34.000Z","size":1959,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T00:38:59.562Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markosko.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":"2016-09-30T18:23:57.000Z","updated_at":"2018-10-23T12:35:55.000Z","dependencies_parsed_at":"2022-08-29T02:41:42.963Z","dependency_job_id":null,"html_url":"https://github.com/markosko/nativescript-hook-filter-modules","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/markosko%2Fnativescript-hook-filter-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markosko%2Fnativescript-hook-filter-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markosko%2Fnativescript-hook-filter-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markosko%2Fnativescript-hook-filter-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markosko","download_url":"https://codeload.github.com/markosko/nativescript-hook-filter-modules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254522203,"owners_count":22085061,"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-19T21:14:36.327Z","updated_at":"2025-05-16T11:32:18.687Z","avatar_url":"https://github.com/markosko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NativeScript-hook-filter-modules\nShrinking size of built application by deleting defined set of node_modules inside tns_modules\n\n\n## License\nThis plugin is licensed under the MIT license by Marek Maszay\n\n## Installation\n\n```\ntns plugin add nativescript-hook-filter-modules\n```\n\n## Usages\n\nYou don't use all the modules exposed by NativeScript in the core-modules. By default they're bundled with your application during a build.\nThis leads to a larger file size in the end. This hook will remove those modules during the build phase to reduce the overall application size.\nThis isn't as sophisticated as webpack but it works and is pretty simple to setup and use to reduce your app size on the device.\n\nThe more you remove the smaller the final build will be of course. Remove only what you don't need or the app will crash if it tries to require a module.\nThis is easily fixed by updating the filter-modules.json and rebuilding your application.\n\n## Example\n\n##### filter-modules.json\n In this example the hook will remove the `connectivity` module from your built application.\n```\n{\n    \"to_be_deleted\": [\n        \"connectivity\"\n    ],\n    \"to_be_kept\": [\n\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkosko%2Fnativescript-hook-filter-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkosko%2Fnativescript-hook-filter-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkosko%2Fnativescript-hook-filter-modules/lists"}