Skip to content

raisely/decode-instauuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Decodes an instagram style uuid.

See [Sharding & IDs at Instagram](Sharding & IDs at Instagram)

Usage

const decodeInstauuid = require('decode-instauuid');

const id = '12694591244328775695';

const decoded = decodeInstauuid(id);

console.log(decoded);
// { timestamp: 1513313203374, additional: 12, counter: 15 }

console.log(new Date(decoded.timestamp));
// 2017-12-15T04:46:43.374Z

About

Decode instagram style uuids

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published