chardet
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "chardet", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"homepage": "https://github.com/runk/node-chardet", | ||
@@ -23,8 +23,8 @@ "description": "Character detector", | ||
"devDependencies": { | ||
"github-publish-release": "^5.0.0", | ||
"mocha": "^5.2.0" | ||
"mocha": "^6.1.4", | ||
"semantic-release": "^15.13.18" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:runk/node-chardet.git" | ||
"url": "https://github.com/runk/node-chardet.git" | ||
}, | ||
@@ -37,3 +37,3 @@ "bugs": { | ||
"test": "mocha -R spec --recursive --bail", | ||
"release": "scripts/release" | ||
"semantic-release": "semantic-release" | ||
}, | ||
@@ -40,0 +40,0 @@ "main": "index.js", |
@@ -20,3 +20,3 @@ | ||
var chardet = require('chardet'); | ||
chardet.detect(Buffer.alloc('hello there!')); | ||
chardet.detect(Buffer.from('hello there!')); | ||
// or | ||
@@ -32,3 +32,3 @@ chardet.detectFile('/path/to/file', function(err, encoding) {}); | ||
var chardet = require('chardet'); | ||
chardet.detectAll(Buffer.alloc('hello there!')); | ||
chardet.detectAll(Buffer.from('hello there!')); | ||
// or | ||
@@ -35,0 +35,0 @@ chardet.detectFileAll('/path/to/file', function(err, encoding) {}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
75049