Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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;
```