Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/norjs/cloud-common
Common files for Sendanor's cloud framework
https://github.com/norjs/cloud-common
Last synced: 25 days 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-01T00:55:20.000Z (almost 6 years ago)
- Last Synced: 2024-10-31T18:26:27.971Z (about 2 months ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 0
- Watchers: 2
- 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;
```