jonahsnider / bootleg

Download media from social media
Apache License 2.0
3 stars 0 forks source link
download hacktoberfest instagram social-media

Bootleg

Build Status XO code style codecov

Download media from social media.

Project scope

The goal is for Bootleg to be a very fast and simple to use downloader application. Most alternatives download content by scraping websites. This is very inefficient and is prone to breaking if the website layout changes. Instead, Bootleg uses official APIs to query for exactly what needs to be downloaded.

Supported services

Prequisites

This project uses a current LTS release of Node.js to run.

This project uses Yarn to install dependencies, although you can use another package manager like npm or pnpm.

yarn install
# or `npm install`
# or `pnpm install`

Building

Run the build script to compile the TypeScript into the tsc_output folder. This will compile the src and the test directory, so be careful not to upload the whole folder as a published package.

Style

This project uses Prettier and XO.

You can run Prettier in the project with this command:

yarn run style

You can run XO with this command:

yarn run lint

Note that XO will also error if you have TypeScript errors, not just if your formatting is incorrect.

Linting

This project uses XO (which uses ESLint and some plugins internally) to perform static analysis on the TypeScript. It reports things like unused variables or not following code conventions.

yarn run lint

Note that XO will also error if you have incorrect formatting, not just if your TypeScript code has errors.

Testing

Unit tests are written alongside the files they are testing. You can run the tests with the test script:

yarn run test

Coverage

This will generate a coverage folder which has a breakdown of coverage of the project. The CI will upload the coverage information to CodeCov which can be viewed here.