Comparing version 1.0.1 to 1.0.3
{ | ||
"name": "josent", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"description": "josent (json simple client) is a client based on json and Promises", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# josent | ||
josent (json simple client) is a client based on json and Promises | ||
It's just a thiny layer around isomorphic fetch. | ||
## examples: | ||
### get: | ||
``` | ||
josent | ||
.get('https://api.github.com/users/defunkt') | ||
.then(function(json){ | ||
console.log('json: ',json); | ||
}); | ||
``` | ||
### post: | ||
``` | ||
josent | ||
.post(YOUR_URL) | ||
.then(function(json){ | ||
console.log('json: ',json); | ||
}); | ||
``` | ||
### delete: | ||
``` | ||
josent | ||
.delete(YOUR_URL) | ||
.then(function(json){ | ||
console.log('json: ',json); | ||
}); | ||
``` | ||
### put: | ||
``` | ||
josent | ||
.put(YOUR_URL) | ||
.then(function(json){ | ||
console.log('json: ',json); | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18350
46