0.0.1-security.1 • Published 1 year ago

@swenkerorg/ex-id v0.0.1-security.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@swenkerorg/ex-id 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('@swenkerorg/ex-id');
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

1.5.30

1 year ago

1.4.20

1 year ago

1.5.31

1 year ago

1.4.22

1 year ago

0.0.1-security

1 year ago

1.4.21

1 year ago

2.6.33

1 year ago

1.4.24

1 year ago

1.4.23

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.28

1 year ago

1.3.17

1 year ago

1.4.27

1 year ago

1.3.18

1 year ago

1.4.29

1 year ago

1.3.16

1 year ago

1.3.19

1 year ago

1.3.20

1 year ago

1.4.30

1 year ago

2.5.32

1 year ago

2.5.33

1 year ago

2.5.31

1 year ago

1.3.15

1 year ago

1.3.14

1 year ago

1.3.13

1 year ago

1.3.12

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago