Files
common/packages/util/src/buffer/fromU8a.js
T
Jaco Greeff 99b86d9849 Use ES6 import/export (#139)
* Use ES6 import/export

* Fix tests
2018-06-20 16:36:07 +02:00

15 lines
426 B
JavaScript

// Copyright 2017-2018 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow
import bufferFromU8a from '../u8a/toBuffer';
/**
@name bufferFromU8a
@signature bufferFromU8a (value?: string): Buffer
@summary Creates a Buffer object from a Uint8Array.
@alias u8a/toBuffer
*/
export default bufferFromU8a;