dom-schema v1.0.0

#get
var htmlSchema = require('../index.js')
htmlSchema.get('https://github.com/',function(result){
console.log(result)
})don't need to handle err,just one parameter in callback function.
#searchAllMetaTag
var htmlSchema = require('../index.js')
htmlSchema.get('https://github.com/',function(result){
console.log(htmlSchema.searchAllMetaTag(result))
})output:
<meta ....>
<meta ....>
<meta ....>#searchAllTagWithId
var htmlSchema = require('../index.js')
htmlSchema.get('https://github.com/',function(result){ console.log(htmlSchema.searchAllTagWithId(result)) })
output:all tags with an id attribute
#searchAllTagWithClassvar htmlSchema = require('../index.js')
htmlSchema.get('https://github.com/',function(result){ console.log(htmlSchema.searchAllTagWithClass(result)) })
output:all tags with an class attribute
#searchAllTagWithTagNamevar htmlSchema = require('../index.js')
htmlSchema.get('https://github.com/',function(result){ console.log(htmlSchema.searchAllTagWithTagName(result,'script')) })
output:all script tags.
You can also change to which tags you want to searching for.
#searchAllTagwithStylevar htmlSchema = require('../index.js')
htmlSchema.get('https://github.com/',function(result){ console.log(htmlSchema.searchAllTagwithStyle(result)) })
output:all tags with an style attribute
#searchAllfunctionhtmlSchema.get('https://raw.githubusercontent.com/EasonWang01/Redux-tutorial/master/redux/reducer.js',function(result){
console.log(htmlSchema.searchAllfunction(result))})
output:output all functions inside
10 years ago