Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@patrtorg/molestias-perspiciatis-velit

patrtorg22.5kMIT5.6.95

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

key, tostringtag, electron, util.inspect, zod, subprocess, typeof, has-own, sharedarraybuffer, json-schema, ie, preprocessor, listeners, syntax, json-schema-validator, ast, ender, isConcatSpreadable, data, jsdiff, native, StyleSheet, ansi, es-abstract, settings, dynamodb, URL, String.prototype.trim, animation, bdd, point-free, mru, fork, getintrinsic, pyyaml, modules, es8, names, optimist, dom, random, events, http, negative, weakset, classname, let, regex, collection, fastcopy, css variable, libphonenumber, BigInt64Array, jwt, superagent, express, ES2020, Iterator, getopt, cjk, lru, banner, react-testing-library, argv, styling, password, jQuery, flux, Array.prototype.filter, Symbol, replay, functions, drag, nested css, match, babel, spinner, descriptor, deep-copy, Float32Array, ECMAScript 2015, rules, Float64Array, keys, elb, cli, accessor, reuse, jshint, import, mkdir, transpiler, acorn, dataview, ES8, HyBi, mobile, formatting, make dir, utilities, flatMap, npm, chromium, mkdirs, three, variables in css, type, ecmascript, unicode, shared, es7, waapi, defineProperty, queueMicrotask, symbol, awesomesauce, ES7, Int32Array, utils, writable, upload, monorepo, promise, mapreduce, sham, lesscss, window, curried, art, expression, character, storagegateway, Reflect.getPrototypeOf, prop, text, https, Object.assign, ECMAScript 3, ECMAScript, arktype, exit-code, environments, positive, fp, binaries, ES2021, arrays, dotenv, chrome, Object.is, omit, execute, option, pipe, es2018, streams, yup, hasOwnProperty, bundling, s3, fastclone, System.global, every, symlink, hardlinks, setPrototypeOf, styleguide, once, var, js, function, ES2019, css nesting, xterm, ECMAScript 5, 0, link, trimLeft, equal, [[Prototype]], tc39, Object.fromEntries, consume, readablestream, channel, patch, remove, Array.prototype.includes, time, .env, ArrayBuffer.prototype.slice, bind, circular, self, file, package.json, route53, datastructure, column, 3d, RegExp#flags, hooks, jest, react-hooks, typed array, curl, concat, language, route, openssl, javascript, width, xhr, color, moment, harmony, .gitignore, css less, WeakMap, dataView, resolve, redux, directory, computed-types, fullwidth, interrupts, define, helper, predictable, ECMAScript 2020, swf, serializer, call-bind, traverse, rgb, generics, forEach, entries, lazy, routing, shebang, es-shims, valid, idle, less, command-line, classes, properties, full-width, censor, es5, collection.es6, Uint32Array, RFC-6455, uninstall, amazon, extra, iterator, trimStart, dir, require, regular-expression, values, browserslist, fps, ECMAScript 2017, filter, sameValueZero, beanstalk, cloudtrail, parser, lockfile, nope, tty, eventEmitter, metadata, invariant, korean, simpledb, getOwnPropertyDescriptor, jsdom, wait, byteLength, fast, hot, global this value, logging, types, ES, transport, quote, ES6, 256, variables, typanion, plugin, ECMAScript 6, ES2016, description, linux, prune, es6, serialization, hash, eslintconfig, i18n, child, ECMAScript 2016, YAML, vars, Array.prototype.flatMap, persistent, form, config, exec, ECMAScript 2023, proto, node, ES2015, css-in-js, Array.prototype.findLast, minimal, elm, gitignore, macos, ECMAScript 2019, assign, Object.getPrototypeOf, identifiers, Stream, toobject, npmignore, function.length, mkdirp, typedarray, path, forms, babel-core, ES2017, Int16Array, own, escape, group, create, tdd, ECMAScript 2021, ramda, exit, query, workflow, encryption, regular expression, pose, find, string, ajv, sns, asterisks, format, view, WebSockets, emr, trimRight, url, busy, phone, real-time, callbound, iteration, rapid, helpers, guid, dependencies, packages, spring, shim, codes, copy, Streams, spinners, delete, gdpr, ES2022, es2017, live, environment, prototype, from, pino, warning, dependency manager, assert, form-validation, sigint, schema, __proto__, japanese, api, Object.defineProperty, shell, Set, parse, AsyncIterator, bcrypt, binary, safe, test, parsing, dayjs, Map

readme

@patrtorg/molestias-perspiciatis-velit Version Badge

github actions coverage License Downloads

npm badge

Get the byteOffset out of a DataView, robustly.

This will work in node <= 0.10 and < 0.11.4, where there's no prototype accessor, only a nonconfigurable own property. It will also work in modern engines where DataView.prototype.byteOffset has been deleted after this module has loaded.

Example

const dataViewByteOffset = require('@patrtorg/molestias-perspiciatis-velit');
const assert = require('assert');

const ab = new ArrayBuffer(42);
const dv = new DataView(ab, 2);
assert.equal(dataViewByteOffset(dv), 2);

Tests

Simply clone the repo, npm install, and run npm test