buffer-shims

WebJar for buffer-shims

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

buffer-shims
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

buffer-shims
WebJar for buffer-shims
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/calvinmetcalf/buffer-shims

Скачать buffer-shims

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/buffer-shims/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>buffer-shims</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/buffer-shims/
implementation 'org.webjars.npm:buffer-shims:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/buffer-shims/
implementation ("org.webjars.npm:buffer-shims:1.0.0")
'org.webjars.npm:buffer-shims:jar:1.0.0'
<dependency org="org.webjars.npm" name="buffer-shims" rev="1.0.0">
  <artifact name="buffer-shims" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='buffer-shims', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "buffer-shims" % "1.0.0"
[org.webjars.npm/buffer-shims "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

buffer-shims

functions to make sure the new buffer methods work in older browsers.

var bufferShim = require('buffer-shims');
bufferShim.from('foo');
bufferShim.alloc(9, 'cafeface', 'hex');
bufferShim.allocUnsafe(15);
bufferShim.allocUnsafeSlow(21);

should just use the original in newer nodes and on older nodes uses fallbacks.

Known Issues

  • this does not patch the buffer object, only the constructor stuff
  • it's actually a polyfill

Версии библиотеки

Версия
1.0.0