Socket
Socket
Sign inDemoInstall

robots-txt-parse

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

robots-txt-parse - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

@@ -8,1 +8,5 @@ # Changelog

- remove dependencies on `through` and `stream-combiner`
### 2.0.1
- use `split2` package instead of `split`

4

lib/parse.js
'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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc