# sp-list-filter

> Looks through SharePoint lists under web and return an array of lists that pass the truth test.

Latest version **0.0.2** (published 2015-09-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install sp-list-filter
pnpm add sp-list-filter
yarn add sp-list-filter
bun add sp-list-filter
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-09-29 |
| First published | 2015-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Frederick-S |
| Maintainers | frederick-s |
| Keywords | SharePoint |

## Links

- npm: https://www.npmjs.com/package/sp-list-filter
- Repository: https://github.com/Frederick-S/sp-list-filter
- Homepage: https://github.com/Frederick-S/sp-list-filter#readme
- Issues: https://github.com/Frederick-S/sp-list-filter/issues
- npm.io page: https://npm.io/package/sp-list-filter

## Dependencies (2)

- [sp-each](https://npm.io/package/sp-each.md) 0.0.5
- [sp-context-helper](https://npm.io/package/sp-context-helper.md) 0.0.4

## Recent versions

- 0.0.2 (latest) — 2015-09-29
- 0.0.1 — 2015-09-29

## README

# sp-list-filter
Looks through SharePoint lists under web and return an array of lists that pass the truth test.

## Installation
```
npm install sp-list-filter --save
```

## Usage
```js
var listFilter = require('sp-list-filter');

var options = {
    'webUrl': 'web url',
    'useAppContextSite': false,
    'filters': {
        'baseTemplate': 100 // Or baseType
    }
};

listFilter(options, function (lists) {
    // Do something
}, function (sender, args) {
    // Error
});

// Or pass a function to options.filters
var options = {
    'webUrl': 'web url',
    'useAppContextSite': false,
    'filters': function (list) {
        return list.get_baseType() === 0;
    }
};
```

## License
MIT.

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