@fdaciuk/ajax
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@fdaciuk/ajax", | ||
"description": "Ajax module in Vanilla JS", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/ajax.min.js", | ||
@@ -25,3 +25,4 @@ "directories": { | ||
"scripts": { | ||
"test": "gulp test" | ||
"test": "gulp test", | ||
"publish": "npm publish --access=public" | ||
}, | ||
@@ -28,0 +29,0 @@ "devDependencies": { |
@@ -15,4 +15,8 @@ # Ajax | ||
## Usage | ||
You can use this module with _AMD_, _CommonJS_ or just like a method of `window` object! | ||
## Installation | ||
### Bower | ||
You can install via bower: | ||
@@ -24,4 +28,6 @@ | ||
or add `dist/ajax.min.js` on your HTML: | ||
### Manual installation | ||
Just download `dist/ajax.min.js` file, and add `dist/ajax.min.js` on your HTML file: | ||
```html | ||
@@ -31,6 +37,12 @@ <script src="js/ajax.min.js"></script> | ||
You can use this module with _AMD_, _CommonJS_ or just like a method of `window` object! | ||
### CommonJS (via NPM) | ||
#### AMD | ||
```sh | ||
npm i --save @fdaciuk/ajax | ||
``` | ||
## Usage | ||
### AMD | ||
```js | ||
@@ -43,12 +55,4 @@ define([ 'Ajax' ], function( Ajax ) { | ||
#### CommonJS (via NPM) | ||
### CommonJS | ||
**Install:** | ||
```sh | ||
npm i --save @fdaciuk/ajax | ||
``` | ||
**Usage:** | ||
```js | ||
@@ -55,0 +59,0 @@ var Ajax = require( '@fdaciuk/ajax' ); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7397
171
1