https://github.com/raisely/decode-instauuid
Decode instagram style uuids
https://github.com/raisely/decode-instauuid
Last synced: 3 months ago
JSON representation
Decode instagram style uuids
- Host: GitHub
- URL: https://github.com/raisely/decode-instauuid
- Owner: raisely
- Created: 2017-12-15T05:33:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-15T05:47:20.000Z (over 7 years ago)
- Last Synced: 2025-01-13T09:36:18.037Z (5 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Decodes an instagram style uuid.
See [Sharding & IDs at Instagram](Sharding & IDs at Instagram)
# Usage
```js
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
```