{"id":17482453,"url":"https://github.com/creationix/mine","last_synced_at":"2025-04-10T02:44:10.052Z","repository":{"id":63627502,"uuid":"9801453","full_name":"creationix/mine","owner":"creationix","description":"Miner digs into a javascript file looking for require calls.  Used to statically extract common js dependencies.","archived":false,"fork":false,"pushed_at":"2014-08-05T20:03:27.000Z","size":399,"stargazers_count":17,"open_issues_count":2,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T04:14:38.658Z","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/creationix.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}},"created_at":"2013-05-01T22:34:25.000Z","updated_at":"2023-09-08T16:39:11.000Z","dependencies_parsed_at":"2022-11-22T18:02:42.551Z","dependency_job_id":null,"html_url":"https://github.com/creationix/mine","commit_stats":null,"previous_names":["creationix/miner"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creationix%2Fmine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creationix%2Fmine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creationix%2Fmine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creationix%2Fmine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creationix","download_url":"https://codeload.github.com/creationix/mine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248145640,"owners_count":21055174,"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-18T23:43:35.091Z","updated_at":"2025-04-10T02:44:10.013Z","avatar_url":"https://github.com/creationix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"mine.js\n=======\n\nThe mine script accepts js source and returns all the require call locations as well as the target string. This is a submodule of [js-linker](https://github.com/creationix/js-linker) and [my-filters](https://github.com/creationix/my-filters).\n\n``` js\nvar mine = require('js-linker/mine.js');\nvar fs = require('fs');\nvar code = fs.readFileSync(\"test.js\");\nvar deps = mine(code);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreationix%2Fmine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreationix%2Fmine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreationix%2Fmine/lists"}