1.3.3 • Published 5 years ago

@norjs/cloud-common v1.3.3

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

Common files for NorJS's cloud framework

Install: npm install --save '@norjs/cloud-common

createBodyIDs() -- Create unique identifier based on object content

This function creates unique IDs for cloud objects based on their content.

import { createBodyIDs } from '@norjs/cloud-common';

let body = {
  hello: "world"
};
let id, hash;
[id, hash] = createBodyIDs(body);

body.$id = id;
body.$hash = hash;