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

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

38 lines
936 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 u8aConcat from './concat';
import u8aFixLength from './fixLength';
import u8aFromBn from './fromBn';
import u8aFromBuffer from './fromBuffer';
import u8aFromHex from './fromHex';
import u8aFromUtf8 from './fromUtf8';
import u8aFromString from './fromString';
import u8aToBn from './toBn';
import u8aToBuffer from './toBuffer';
import u8aToHex from './toHex';
import u8aToString from './toString';
import u8aToU8a from './toU8a';
import u8aToUtf8 from './toUtf8';
/**
@summary Utility methods to convert to and from `Uint8Array` objects
*/
export {
u8aConcat,
u8aFixLength,
u8aFromBn,
u8aFromBuffer,
u8aFromHex,
u8aFromString,
u8aFromUtf8,
u8aToBn,
u8aToBuffer,
u8aToHex,
u8aToString,
u8aToU8a,
u8aToUtf8
};