Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshgillies/node-matrix-asset-status
Asset status helper for Squiz Matrix
https://github.com/joshgillies/node-matrix-asset-status
Last synced: 5 days ago
JSON representation
Asset status helper for Squiz Matrix
- Host: GitHub
- URL: https://github.com/joshgillies/node-matrix-asset-status
- Owner: joshgillies
- License: mit
- Created: 2015-09-27T08:12:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-27T08:52:40.000Z (about 9 years ago)
- Last Synced: 2024-10-19T00:15:10.351Z (27 days ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-matrix-asset-status
Asset status helper for Squiz Matrix.
Extracted using the [SOAP API GetAllStatuses] function.
[![Build Status](https://travis-ci.org/joshgillies/node-matrix-asset-list.svg)](https://travis-ci.org/joshgillies/node-matrix-asset-list)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)## Usage
```js
var status = require('node-matrix-asset-status')
````node-matrix-asset-status` provides a simple querying interface which allows you to retrieve
asset status codes with the following:```js
console.log(status('Live')) // 16
console.log(status('live')) // 16
```In addition you can pass in a valid status code and get the status name back:
```js
console.log(status(16)) // 'Live'```
## License
MIT
[SOAP API GetAllStatuses]: http://manuals.matrix.squizsuite.net/web-services/chapters/soap-api-asset-service#getallstatuses