We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e8b099 commit db62978Copy full SHA for db62978
1 file changed
x-pack/platform/plugins/shared/index_management/public/application/lib/format_bytes.ts
@@ -0,0 +1,10 @@
1
+/*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0; you may not use this file except in compliance with the Elastic License
5
+ * 2.0.
6
+ */
7
+
8
+import numeral from '@elastic/numeral';
9
10
+export const formatBytes = (bytes?: number): string => numeral(bytes || 0).format('0.00 b');
0 commit comments