list-github-dir-content

List all the files in a GitHub repo’s directory

MIT License

Downloads
6.5K
Stars
51
Committers
4

Bot releases are hidden (Show)

list-github-dir-content - Latest Release

Published by fregante 3 months ago

list-github-dir-content -

Published by fregante 3 months ago

Major Changes

  • Use ESM
  • Set minimum Node to v18 (#20) 2ed69b5
- const listContent = require('list-github-dir-content');
- await listContent.viaTreesApi();

+ import {getDirectoryContentViaTreesApi} from 'list-github-dir-content';
+ await getDirectoryContentViaTreesApi();

https://github.com/fregante/list-github-dir-content/compare/v3.0.0...v4.0.0

list-github-dir-content -

Published by fregante over 4 years ago

Major Changes

  • Use Authorization header instead of access_token URL parameter: #17

Patches

  • Add type declarations: #13
  • Add support for 404 folders (returns empty array): 3fbae256135d7eadde94f1a22e01ee5219f02bf5
  • Update node-fetch: 0b950b3f2d368c3e712619aac48b10dd455f9b3f
  • Throw error when token is bad: 0aa015e3861d159889246293a07df1d48c8d2f0f

Credits

Huge thanks to @dan2k3k4 and @loilo for helping!

list-github-dir-content -

Published by fregante almost 5 years ago

This version is not backwards-compatible because the functions’ signature is different, but the output is unchanged (unless the set the new option to true)

Major Changes

  • Add option to return all available info instead of just the path: #12

Credits

Huge thanks to @loilo for helping!

list-github-dir-content -

Published by fregante almost 5 years ago

Patches

  • Avoid downloading files from folders with similar names: d5bc13e6b7754af222ddd078f89798f764796734
list-github-dir-content -

Published by fregante over 6 years ago

Minor Changes

  • Add support for non-master branches: #9

Credits

Huge thanks to @aslafy-z for helping!