# nu6tils

> Nurun Paris utilities

Latest version **1.1.0** (published 2016-11-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install nu6tils
pnpm add nu6tils
yarn add nu6tils
bun add nu6tils
```

## 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 | 1.1.0 |
| Published | 2016-11-30 |
| First published | 2016-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Antoine Sanchez |
| Maintainers | romuleald |
| Keywords | nurun, jquery, getService, ajax |

## Links

- npm: https://www.npmjs.com/package/nu6tils
- Repository: https://github.com/romuleald/nu6tils
- Homepage: https://github.com/romuleald/nu6tils#readme
- Issues: https://github.com/romuleald/nu6tils/issues
- npm.io page: https://npm.io/package/nu6tils

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2016-11-30

## README

# toggler

## Usage 

* **Import script** nu6tils.js
    * **Import script ES6** `import nu6tils from 'nu6tils`
    * **Import script ES6** `import {ajax, getService} from 'nu6tils`
* **Call function `ajax` or `getService`** when document is ready

Example of `import`
```javascript
import {ajax, getService, module} from nu6tils
```

##List available

* `ajax`
* `ajax-loader`
* `getService`

###Ajax

`ajax` allow you to centralize all your ajax calling with only one function
dependant of `jQuery`
`return $.ajax`

###Get Gervice

`getService` allow you to centralize all your service call
You will need to pass an jsonEndpoint param
```javascript
getService.init({endPoint});
var x = getService.call('serviceName', {param});
x.done(doSomething);
```
Example of a json endpoint
```javascript
    var jsonendpoint = {
        suggest: {
            url: 'services/suggest.json',
            method: 'get',
            limit: {
                m: {
                    nk: 3,
                    ncp: 3,
                    npp: 3
                },
                d: {
                    nk: 9,
                    ncp: 4,
                    npp: 4
                }
            }
        },
        history: {
            url: 'services/history.json',
            method: 'get'
        },
        wishlistimport: {
            url: 'services/wishlist/to_json.json',
            method: 'post',
            contentType: false,
            processData: false
        },
        prefilling: {
            url: 'services/prefilling.json',
            method: 'get'
        }
    };
```

`return $.ajax`

###Module

`module` call all your js-module files easily
```javascript
module.init();
```



`return $.ajax`

## Version update

### 1.0.0

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