Use ES6 import/export (#139)

* Use ES6 import/export

* Fix tests
This commit is contained in:
Jaco Greeff
2018-06-20 16:36:07 +02:00
committed by GitHub
parent 7a694c075c
commit 99b86d9849
263 changed files with 841 additions and 814 deletions
+2 -2
View File
@@ -14,10 +14,10 @@
u8aToString(new Uint8Array([21,23,45,67])); // 21,23,45,67
*/
module.exports = function u8aToString (value?: Uint8Array): string {
export default function u8aToString (value?: Uint8Array): string {
if (!value || !value.length) {
return '';
}
return value.toString();
};
}