Socket
Socket
Sign inDemoInstall

strtok3

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strtok3 - npm Package Compare versions

Comparing version 7.0.0-alpha.2 to 7.0.0-alpha.3

20

package.json
{
"name": "strtok3",
"version": "7.0.0-alpha.2",
"version": "7.0.0-alpha.3",
"description": "A promise based streaming tokenizer",

@@ -24,9 +24,9 @@ "author": {

"test": "mocha",
"test-coverage": "nyc npm run test",
"send-coveralls": "nyc report --reporter=text-lcov | coveralls",
"send-codacy": "nyc report --reporter=text-lcov | codacy-coverage",
"test-coverage": "c8 npm run test",
"send-coveralls": "c8 report --reporter=text-lcov | coveralls",
"send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
"start": "npm run compile && npm run lint && npm run cover-test"
},
"engines": {
"node": ">=12.20"
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},

@@ -56,7 +56,8 @@ "repository": {

"@types/debug": "^4.1.6",
"@types/mocha": "^8.2.3",
"@types/node": "^16.3.3",
"@types/mocha": "^9.0.0",
"@types/node": "^16.4.6",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/eslint-plugin-tslint": "^4.28.3",
"@typescript-eslint/eslint-plugin-tslint": "^4.28.5",
"@typescript-eslint/parser": "^2.34.0",
"c8": "^7.8.0",
"chai": "^4.3.4",

@@ -69,3 +70,2 @@ "coveralls": "^3.1.1",

"mocha": "^9.0.3",
"nyc": "^15.1.0",
"remark-cli": "^9.0.0",

@@ -79,3 +79,3 @@ "remark-preset-lint-recommended": "^5.0.0",

"dependencies": {
"peek-readable": "^5.0.0-alpha.2"
"peek-readable": "^5.0.0-alpha.3"
},

@@ -82,0 +82,0 @@ "keywords": [

@@ -51,3 +51,3 @@ ![Node.js CI](https://github.com/Borewit/strtok3/workflows/Node.js%20CI/badge.svg)

Note that [file-information](#file-information) is automatically added.
> __Note__: that [file-information](#file-information) is automatically added.

@@ -135,7 +135,6 @@ Returns, via a promise, a [*tokenizer*](#tokenizer) which can be used to parse a file.

There are to groups of methods
There are two kind of methods:
1. *read* methods: used to read a *token* of [Buffer](https://nodejs.org/api/buffer.html) from the [*tokenizer*](#tokenizer). The position of the *tokenizer-stream* will advance with the size of the token.
2. *peek* methods: same as the read, but it will *not* advance the pointer. It allows to read (peek) ahead.
* *read* methods: used to read a *token* of [Buffer](https://nodejs.org/api/buffer.html) from the [*tokenizer*](#tokenizer). The position of the *tokenizer-stream* will advance with the size of the token.
* *peek* methods: same as the read, but it will *not* advance the pointer. It allows to read (peek) ahead.
#### Method `tokenizer.readBuffer()`

@@ -142,0 +141,0 @@

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