This package has been deprecated

Author message:

Use xhr-envelope instead.

jquery-envelope

1.0.6 • Public • Published

jQuery Envelope

NPM version Build Status Coverage Status Known Vulnerabilities Downloads

A wrapper for jQuery's AJAX function to allow for simpler RESTful API transactions.

Client-Side Usage

<script src="jquery-envelope.js"></script>

<script type="text/javascript">
	envelope.setBaseUrl("http://127.0.0.1:3000");

	envelope.get(
		"status",
		function(error, result) {
			if(error) {
				return console.error(error);
			}

			return console.log(result);
		}
	);
</script>

Installation

To install this module:

npm install jquery-envelope

Building

To build the distribution files for this module:

npm run build

or

gulp build

Package Sidebar

Install

npm i jquery-envelope

Weekly Downloads

5

Version

1.0.6

License

ISC

Unpacked Size

16.6 kB

Total Files

4

Last publish

Collaborators

  • nitro404