# jsom-ctx

> Simplifies JSOM usage, and allows for async-await

Latest version **1.2.1** (published 2020-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsom-ctx
pnpm add jsom-ctx
yarn add jsom-ctx
bun add jsom-ctx
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2020-01-17 |
| First published | 2017-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | olemp |
| Maintainers | olemp2 |
| Keywords | jsom, sharepoint, async, await, office365 |

## Links

- npm: https://www.npmjs.com/package/jsom-ctx
- Repository: https://github.com/olemp/jsom-ctx
- Homepage: https://github.com/olemp/jsom-ctx#readme
- Issues: https://github.com/olemp/jsom-ctx/issues
- npm.io page: https://npm.io/package/jsom-ctx

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.2.1 (latest) — 2020-01-17
- 1.2.0 — 2018-11-15
- 1.1.0 — 2018-11-15
- 1.0.9 — 2018-11-15
- 1.0.8 — 2018-02-01
- 1.0.7 — 2018-02-01
- 1.0.6 — 2018-02-01
- 1.0.5 — 2017-10-25
- 1.0.4 — 2017-09-28
- 1.0.3 — 2017-09-28
- 1.0.2 — 2017-09-28
- 1.0.1 — 2017-09-28
- 1.0.0 — 2017-09-28
- 0.3.6 — 2017-09-28
- 0.3.5 — 2017-09-28
- … 7 more at https://npm.io/package/jsom-ctx/versions

## README

# jsom-ctx
Simplifies JSOM usage, and allows for async-await.

# Examples
Get web title for current web

```typescript
(async function () {
    try {
        let ctx = new JsomContext(_spPageContextInfo.webAbsoluteUrl);
        ctx = await ctx.load();
        await ExecuteJsomQuery(ctx, [ctx.web, ctx.lists]);
        console.log(ctx.web.get_title());
    } catch (err) {
        console.log(err);
    }
})();
````

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