0.1.4 • Published 7 years ago

get-refile-url v0.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

get-refile-url

Get Refile URL from key using SHA.

See https://github.com/evanx/refile

Implementation

See https://github.com/evanx/get-refile-url/blob/master/index.js

const crypto = require('crypto');

module.exports = (refileDomain, key) => [
    'https://' + config.refileDomain,
    'key',
    crypto.createHash('sha1').update(key).digest('hex').substring(0, 3),
    key.replace(/\W/g, '-') + '.json'
].join('/')

Used by

https://twitter.com/@evanxsummers

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago