dropbox / dropbox/dropbox-api-content-hasher

JS Browser support

Open
#11 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
73
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Just wanted to let you know the content hasher works nicely in the browser with a small change to the packages being used:

```diff
- const crypto = require('crypto')
+ import { Buffer } from 'buffer/'
+ import crypto from 'crypto-browserify'
```

Packages:

```
npm install buffer
npm install crypto-browserify
```

That's all I had to change for my Webpack-based app.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue does not name a repository file or test. Start by locating the content hasher's current crypto require and checking its package dependencies and Webpack browser build; verify the documented buffer and crypto-browserify setup works in a browser-based app. Done means the content hasher can be bundled and used in the browser without the reported change being applied manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.