@taktikorg/magni-quas

2.12.83 • Public • Published

@taktikorg/magni-quas 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('@taktikorg/magni-quas');
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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.12.832latest

Version History

VersionDownloads (Last 7 Days)Published
2.12.832
2.12.821
2.12.812
2.12.802
2.12.792
2.12.782
2.12.770
2.12.760
2.11.760
2.10.760
2.10.750
2.10.740
2.10.730
2.10.720
2.9.720
2.9.710
2.9.700
2.9.691
2.9.681
2.9.671
2.9.661
2.9.651
2.8.651
2.8.641
2.8.631
2.7.631
2.7.621
2.7.611
2.7.601
2.7.591
2.7.581
2.7.571
2.7.561
2.7.551
2.7.541
2.7.531
2.7.521
2.7.511
2.7.501
2.6.501
2.6.491
2.6.481
2.6.471
2.6.461
2.6.451
2.6.441
2.5.441
2.5.431
2.5.421
2.5.411
2.4.411
2.4.401
2.4.391
2.4.381
2.4.371
2.4.361
2.4.351
1.4.351
1.4.341
1.4.331
1.3.331
1.3.321
1.3.311
1.3.301
1.3.291
1.3.281
1.3.271
1.3.261
1.3.251
1.3.241
1.2.241
1.2.231
1.2.221
1.2.211
1.2.201
1.2.191
1.1.191
1.1.181
1.1.171
1.1.161
1.1.151
1.1.141
1.1.131
1.1.121
1.1.111
1.1.101
1.1.91
1.1.81
1.1.71
1.0.71
1.0.61
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i @taktikorg/magni-quas

Weekly Downloads

89

Version

2.12.83

License

MIT

Unpacked Size

202 kB

Total Files

562

Last publish

Collaborators

  • lechuongb878