Comparing version 2.9.10 to 2.9.11
{ | ||
"name": "jstrip", | ||
"version": "2.9.10", | ||
"version": "2.9.11", | ||
"description": "webpage crawler manipulation", | ||
@@ -5,0 +5,0 @@ "main": "jStrip.js", |
@@ -15,4 +15,22 @@ # jStrip | ||
Check out the many [Examples](#examples) of using jStrip. | ||
#### Chuck Norris Random Joke - json api | ||
```js | ||
const jStrip = require("jstrip"); | ||
const chuckNJoke = new jStrip(); | ||
//display random chuck norris joke | ||
chuckNJoke.on('m1', (d) => { | ||
let pJson = JSON.parse(d.data); | ||
console.log(`Chuck Norris Joke: ${pJson.value}`); | ||
}); | ||
chuckNJoke.getData("https://api.chucknorris.io/jokes/random") | ||
.marker("m1").jpretty().show(); | ||
//jpretty layouts json in easy to read format | ||
``` | ||
Check out the many more [Examples](#examples) of using jStrip. | ||
## Installation | ||
@@ -19,0 +37,0 @@ |
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
37023
449