{"id":21521082,"url":"https://github.com/weisjohn/autoindex","last_synced_at":"2025-04-09T22:21:34.974Z","repository":{"id":13094884,"uuid":"15776226","full_name":"weisjohn/autoindex","owner":"weisjohn","description":"parse an autoindex page into JSON (client or server-side)","archived":false,"fork":false,"pushed_at":"2016-03-24T20:17:40.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T08:52:35.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://weisjohn.github.io/autoindex/","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/weisjohn.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":"2014-01-09T19:05:00.000Z","updated_at":"2024-06-22T02:57:32.000Z","dependencies_parsed_at":"2022-08-30T16:11:13.437Z","dependency_job_id":null,"html_url":"https://github.com/weisjohn/autoindex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2Fautoindex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2Fautoindex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2Fautoindex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weisjohn%2Fautoindex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weisjohn","download_url":"https://codeload.github.com/weisjohn/autoindex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980843,"owners_count":21027809,"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-24T01:05:42.172Z","updated_at":"2025-04-09T22:21:34.946Z","avatar_url":"https://github.com/weisjohn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autoindex\n\nparse an autoindex page into JSON (client or server-side)\n\nEver wanted to take an [autoindex page](http://i.johnweis.com/gifs/ \"Something like this\") use that data programmatically? Now you can.\n\n\n### example:\n\n```\nautoindex('http://i.johnweis.com/gifs/', function(err, results) {\n    console.log(results);\n})\n```\n\noutput: \n\n```\nroot false\nparent { href: '/',\n  url: 'http://i.johnweis.com//',\n  name: 'Parent Directory',\n  type: 'dir' }\ndirectories [ { href: 'sample/',\n    url: 'http://i.johnweis.com/sample/',\n    name: 'sample/',\n    type: 'dir',\n    modified: Thu Jan 09 2014 22:24:00 GMT-0500 (EST) } ]\nfiles [ { href: 'balance.gif',\n    url: 'http://i.johnweis.com/gifs/balance.gif',\n    name: 'balance.gif',\n    type: 'img',\n    modified: Thu Jan 09 2014 22:17:00 GMT-0500 (EST),\n    size: '1.0M' },\n  { href: 'lemon.gif',\n    url: 'http://i.johnweis.com/gifs/lemon.gif',\n    name: 'lemon.gif',\n    type: 'img',\n    modified: Thu Jan 09 2014 22:16:00 GMT-0500 (EST),\n    size: '1.1M' },\n  { href: 'yes.gif',\n    url: 'http://i.johnweis.com/gifs/yes.gif',\n    name: 'yes.gif',\n    type: 'img',\n    modified: Thu Jan 09 2014 22:16:00 GMT-0500 (EST),\n    size: '473K' } ]\n```\n\n\n### server-side \n\n`npm install autoindex` then: \n\n```\nvar autoindex = require('autoindex');\n```\n\n\n### client-side \n\n`bower install autoindex` or download the [index.js](index.js) file.\n\nautoindex works with or without jQuery. If you need legacy browser support, make sure to add jQuery to your page. To use autoindex, simply add it to your page via a \u0026lt;script\u0026gt; tag or use RequireJS.\n\n**NOTE**: If you wish to use this in the browser, [enable CORS](http://enable-cors.org) on that site.\n\n\n### do no evil\n\nIf you're going to use this to write webcrawlers, rate-limit yourself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweisjohn%2Fautoindex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweisjohn%2Fautoindex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweisjohn%2Fautoindex/lists"}