New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alldata-keygen

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alldata-keygen

AllData key generation module

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

alldata-keygen

Stability: 1 - Experimental

NPM version

Key generation module for AllData, a distributed master-less append-only immutable event store database implementing "All Data" part of Lambda Architecture.

Usage

var AllDataKeygen = require('alldata-keygen');
var key = AllDataKeygen.createKey();
// 20130927T005240652508858176

Test

npm test

Overview

AllDataKeygen generates a unique key for every event to be stored in AllData.

Documentation

AllDataKeygen

Public API

AllDataKeygen.createKey()

Creates a new key. Example: 20130927T005240652508858176.

Format is YYYYMMDDThhmmsslllnnnnnnnnn:

  • YYYY current UTC year
  • MM current UTC month
  • DD current UTC day
  • T time separator
  • hh current UTC hours
  • mm current UTC minutes
  • ss current UTC seconds
  • lll current UTC milliseconds
  • nnnnnnnnn nanoseconds "unique" marker from process.hrtime()[1]; could be less than 9 digits

Keywords

FAQs

Package last updated on 22 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc