robots-txt-parse
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -8,1 +8,5 @@ # Changelog | ||
- remove dependencies on `through` and `stream-combiner` | ||
### 2.0.1 | ||
- use `split2` package instead of `split` |
'use strict'; | ||
const split = require('split'); | ||
const split2 = require('split2'); | ||
const { pipeline, Transform } = require('stream'); | ||
@@ -149,3 +149,3 @@ | ||
content, | ||
split(), | ||
split2(), | ||
tokenize(), | ||
@@ -152,0 +152,0 @@ build, |
{ | ||
"name": "robots-txt-parse", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Streaming parser for robots.txt files", | ||
@@ -22,5 +22,3 @@ "main": "lib/parse.js", | ||
"devDependencies": { | ||
"@types/node": "^14.14.31", | ||
"@types/split": "^1.0.0", | ||
"@types/through": "0.0.30", | ||
"@types/split2": "^2.1.6", | ||
"chai": "^4.3.0", | ||
@@ -32,4 +30,4 @@ "mocha": "^8.3.0", | ||
"dependencies": { | ||
"split": "^1.0.1" | ||
"split2": "^3.2.2" | ||
} | ||
} |
@@ -8,10 +8,7 @@ # robots-txt-parse [![Build Status](https://travis-ci.org/Woorank/robots-txt-parse.svg)](https://travis-ci.org/Woorank/robots-txt-parse) | ||
```js | ||
var parse = require('robots-txt-parse'), | ||
fs = require('fs'); | ||
const parse = require('robots-txt-parse'); | ||
const fs = require('fs'); | ||
parse(fs.createReadStream(__dirname + '/robots.txt')) | ||
.then(function (robots) { | ||
console.log(robots) | ||
}); | ||
const input = fs.createReadStream(__dirname + '/robots.txt'); | ||
const result = await parse(input); | ||
``` | ||
@@ -18,0 +15,0 @@ assuming this file |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5
0
12194
56
+ Addedsplit2@^3.2.2
+ Addedinherits@2.0.4(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsplit2@3.2.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedsplit@^1.0.1
- Removedsplit@1.0.1(transitive)
- Removedthrough@2.3.8(transitive)