https://github.com/norjs/cloud-common
Common files for Sendanor's cloud framework
https://github.com/norjs/cloud-common
Last synced: 2 months ago
JSON representation
Common files for Sendanor's cloud framework
- Host: GitHub
- URL: https://github.com/norjs/cloud-common
- Owner: norjs
- Created: 2017-07-07T20:56:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-01T00:55:20.000Z (over 7 years ago)
- Last Synced: 2025-03-18T05:22:36.564Z (over 1 year ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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;
```