# google-datastore-util

> Utilities for easy CRUD operation on Google Datastore. Simple and handy.

Latest version **3.0.1** (published 2016-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install google-datastore-util
pnpm add google-datastore-util
yarn add google-datastore-util
bun add google-datastore-util
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2016-10-07 |
| First published | 2016-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shaharia Azam |
| Maintainers | shaharia |

## Links

- npm: https://www.npmjs.com/package/google-datastore-util
- Repository: https://github.com/shahariaazam/google-datastore-util
- Homepage: https://github.com/shahariaazam/google-datastore-util#readme
- Issues: https://github.com/shahariaazam/google-datastore-util/issues
- npm.io page: https://npm.io/package/google-datastore-util

## Dependencies (1)

- [@google-cloud/datastore](https://npm.io/package/@google-cloud/datastore.md) ^0.4.0

## Recent versions

- 3.0.1 (latest) — 2016-10-07
- 3.0.0 — 2016-10-07
- 2.0.0 — 2016-10-07
- 1.0.0 — 2016-10-07

## README

#### Google Datastore Utilities
Simple CRUD library for Google Datastore.

#### Usage

```js
var ds = require("google-datastore-util")({
    projectId: "googleCloudProjectId",
    keyFilename: "keyFileLocation",
    namespace: "yourNamespace",
    kind: "nameOfKind"
});

ds.read(id, function(error, result){
    console.info(error, result);
});

ds.create(data, function(error, result){
    console.info(error, result);
});

ds.delete(id, function(error, result){
    console.info(error, result);
});

ds.update(id, data, function(error, result){
    console.info(error, result);
});
```

All credit goes to [https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/master/2-structured-data/books/crud.js](https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/master/2-structured-data/books/crud.js)

---
_Source: https://npm.io/package/google-datastore-util · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
