istextorbinary
Advanced tools
Comparing version 5.2.0-next.1591797644.3a86c4a6cf60210e1e017c9fdca634a8580eaf72 to 5.2.0-next.1592596703.e5313de67041196450043fc9f31d95c02d7c488d
/* eslint no-use-before-define:0 */ | ||
// Import | ||
import pathUtil from 'path' | ||
@@ -4,0 +3,0 @@ import textExtensions from 'textextensions' |
@@ -10,3 +10,2 @@ 'use strict' | ||
exports.getEncoding = exports.isBinary = exports.isText = void 0 | ||
// Import | ||
const path_1 = __importDefault(require('path')) | ||
@@ -13,0 +12,0 @@ const textextensions_1 = __importDefault(require('textextensions')) |
@@ -10,3 +10,2 @@ 'use strict' | ||
exports.getEncoding = exports.isBinary = exports.isText = void 0 | ||
// Import | ||
const path_1 = __importDefault(require('path')) | ||
@@ -13,0 +12,0 @@ const textextensions_1 = __importDefault(require('textextensions')) |
{ | ||
"title": "Is Text or Binary?", | ||
"name": "istextorbinary", | ||
"version": "5.2.0-next.1591797644.3a86c4a6cf60210e1e017c9fdca634a8580eaf72", | ||
"version": "5.2.0-next.1592596703.e5313de67041196450043fc9f31d95c02d7c488d", | ||
"description": "Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.", | ||
@@ -150,16 +150,2 @@ "homepage": "https://github.com/bevry/istextorbinary", | ||
} | ||
}, | ||
{ | ||
"description": "TypeScript source code made to be compatible with Deno", | ||
"directory": "edition-deno", | ||
"entry": "index.ts", | ||
"tags": [ | ||
"typescript", | ||
"import", | ||
"deno" | ||
], | ||
"engines": { | ||
"deno": true, | ||
"browsers": true | ||
} | ||
} | ||
@@ -172,3 +158,2 @@ ], | ||
"module": "edition-browsers/index.js", | ||
"deno": "edition-deno/index.ts", | ||
"dependencies": { | ||
@@ -175,0 +160,0 @@ "binaryextensions": "^4.2.0", |
@@ -92,8 +92,2 @@ <!-- TITLE/ --> | ||
<a href="https://deno.land" title="Deno is a secure runtime for JavaScript and TypeScript, it is an alternative for Node.js"><h3>Deno</h3></a> | ||
``` typescript | ||
import * as pkg from 'https://unpkg.com/istextorbinary@^5.2.0/edition-deno/index.ts' | ||
``` | ||
<a href="https://www.pika.dev/cdn" title="100% Native ES Modules CDN"><h3>pika</h3></a> | ||
@@ -131,4 +125,3 @@ | ||
<li><code>istextorbinary/edition-es2019/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>istextorbinary/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>istextorbinary/edition-deno/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code made to be compatible with <a href="https://deno.land" title="Deno is a secure runtime for JavaScript and TypeScript, it is an alternative to Node.js">Deno</a></li></ul> | ||
<li><code>istextorbinary/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul> | ||
@@ -135,0 +128,0 @@ <!-- /INSTALL --> |
/* eslint no-use-before-define:0 */ | ||
// Import | ||
import type Buffer from 'buffer' | ||
import pathUtil from 'path' | ||
@@ -5,0 +6,0 @@ import textExtensions from 'textextensions' |
Sorry, the diff of this file is not supported yet
55258
13
525
203