Skip to content

mehanalavimajd/ajaxman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub forks GitHub contributors GitHub Repo stars GitHub License


Use ajax with no tears


Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Installation
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

Perhaps today in Javascript, Ajax is a dead technology. But many developers still use this technology. The problem happens when vanila js syntax for Ajax isn't really simple. Also, Using jQuery just for it's ajax method does not seem a good idea. So I decided to make a library to make ajax easier for people who use it.

(back to top)

Installation

First make sure that you have npm installed. The install ajaxman in your directory with:

npm install ajaxman

(back to top)

Usage

import ajaxman from "ajaxman"
ajaxman(
  {
    url:"https://www.github.com",
    method:"GET"
  },(req)=>{
    console.log(req.status)
  }
)

NOTE: Ajaxman is just made for front-end usage not Node.js

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Use webpack to rebuild the project with npm run build
  4. Commit your Changes (git commit -m 'Add some AmazingFeature')
  5. Push to the Branch (git push origin feature/AmazingFeature)
  6. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

mehan alavimajd : mehan.alavi.88.majd@gmail.com

Project Link: https://github.com/mehanalavimajd/ajaxman

(back to top)