{"id":19123414,"url":"https://github.com/dependents/node-detective-less","last_synced_at":"2025-06-24T07:33:53.279Z","repository":{"id":66170853,"uuid":"81667495","full_name":"dependents/node-detective-less","owner":"dependents","description":"Grab the dependencies of a Less file by traversing its AST","archived":false,"fork":false,"pushed_at":"2025-02-01T13:31:59.000Z","size":935,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T00:42:20.673Z","etag":null,"topics":["ast","dependencies","detective","less","module"],"latest_commit_sha":null,"homepage":"","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/dependents.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":"2017-02-11T17:03:14.000Z","updated_at":"2025-03-27T03:49:57.000Z","dependencies_parsed_at":"2024-04-14T07:30:29.400Z","dependency_job_id":"6748d2e9-72ab-4431-ad74-5692cb284bd0","html_url":"https://github.com/dependents/node-detective-less","commit_stats":{"total_commits":56,"total_committers":8,"mean_commits":7.0,"dds":0.625,"last_synced_commit":"2890936d94f0d85e0acf3c337c8f4ef36234f4e1"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/dependents/node-detective-less","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-less","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-less/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-less/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-less/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dependents","download_url":"https://codeload.github.com/dependents/node-detective-less/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dependents%2Fnode-detective-less/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260653735,"owners_count":23042642,"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":["ast","dependencies","detective","less","module"],"created_at":"2024-11-09T05:25:34.733Z","updated_at":"2025-06-24T07:33:48.260Z","avatar_url":"https://github.com/dependents.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dependents/detective-less\n\n[![CI](https://img.shields.io/github/actions/workflow/status/dependents/node-detective-less/ci.yml?branch=main\u0026label=CI\u0026logo=github)](https://github.com/dependents/node-detective-less/actions/workflows/ci.yml?query=branch%3Amain)\n[![npm version](https://img.shields.io/npm/v/@dependents/detective-less?logo=npm\u0026logoColor=fff)](https://www.npmjs.com/package/@dependents/detective-less)\n[![npm downloads](https://img.shields.io/npm/dm/@dependents/detective-less)](https://www.npmjs.com/package/@dependents/detective-less)\n\n\u003e Find the dependencies of a less file\n\n```sh\nnpm install @dependents/detective-less\n```\n\n**Note:** This is specific to the .less style syntax.\n\nIt's the LESS counterpart to [detective](https://github.com/substack/node-detective), [detective-amd](https://github.com/dependents/node-detective-amd), and [detective-es6](https://github.com/dependents/node-detective-es6).\n\n* The AST is generated using the [gonzales-pe](https://github.com/tonyganch/gonzales-pe) parser.\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst detective = require('@dependents/detective-less');\n\nconst content = fs.readFileSync('styles.less', 'utf8');\n\n// list of imported file names (ex: 'foo.less', 'foo', etc)\nconst dependencies = detective(content);\n\n// or to also detect any url() references to images, fonts, etc.\nconst allDependencies = detective(content, { url: true });\n```\n\n### Options\n\n* `url` (optional): (`Boolean`) also detect any `url()` references to images, fonts, etc.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdependents%2Fnode-detective-less","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdependents%2Fnode-detective-less","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdependents%2Fnode-detective-less/lists"}