# sp-each

> Iterates over enumerable SharePoint client object.

Latest version **1.0.2** (published 2016-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install sp-each
pnpm add sp-each
yarn add sp-each
bun add sp-each
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-06-23 |
| First published | 2015-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Frederick-S |
| Maintainers | frederick-s |
| Keywords | SharePoint |

## Links

- npm: https://www.npmjs.com/package/sp-each
- Repository: https://github.com/Frederick-S/sp-each
- Issues: https://github.com/Frederick-S/sp-each/issues
- npm.io page: https://npm.io/package/sp-each

## Recent versions

- 1.0.2 (latest) — 2016-06-23
- 1.0.1 — 2016-06-23
- 1.0.0 — 2016-06-23
- 0.0.8 — 2016-06-22
- 0.0.6 — 2016-06-21
- 0.0.5 — 2015-09-01
- 0.0.4 — 2015-09-01
- 0.0.3 — 2015-08-27
- 0.0.2 — 2015-08-26
- 0.0.1 — 2015-08-26

## README

# sp-each [![Build Status](https://travis-ci.org/Frederick-S/sp-each.svg?branch=master)](https://travis-ci.org/Frederick-S/sp-each)
Iterates over enumerable SharePoint client object.

## Installation
```
npm install sp-each --save
```

## Usage
### JavaScript
```js
import { each } from 'sp-each';

each(webs, function (current, index, collection) {
    console.log(current.get_title());
});
```

### TypeScript
```
typings install dt~microsoft.ajax --global --save
typings install dt~sharepoint --global --save
```

```js
/// <reference path="typings/index.d.ts" />

import { each } from 'sp-each';

each<SP.Web>(webs, function (web: SP.Web, index: number, webs: SP.WebCollection) {
    console.log(web.get_title());
});
```

## Test
```
cd sp-each/test/Scripts/src
npm install
webpack
```

Then open the project under test folder by Visual Studio and deploy the Add-in.

## License
MIT.

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