Détail du package

format-io

coderaiser52.5kMIT2.0.0

Format size, permissions

format, size, permissions

readme

Format License NPM version Dependency Status Build Status Coverage Status

Format size, permissions, etc.

How to use?

Format could be used in browser or node.

const format = require('format-io');

API

size

const size = 1024 * 1024 * 5;
format.size(size);
// returns
'5.00mb'

permissions.symbolic

const perm = '00777';
format.permissions.symbolic(perm);
// returns
'rwx rwx rwx'

permissions.numeric

const perm = 'rwx rwx rwx';
format.permissions.numeric(perm);
// returns
'00777'

License

MIT

changelog

2019.09.20, v2.0.0

feature:

  • (format-io) drop support of legacy
  • (package) nyc v14.1.1
  • (package) eslint v6.4.0
  • (package) currify v4.0.0
  • (package) eslint-plugin-node v10.0.0

2018.10.10, v1.0.3

feature:

  • (package) redrun v7.0.2
  • (package) nyc v13.0.1
  • (package) eslint-plugin-node v7.0.1
  • (package) eslint v5.6.1
  • (package) currify v3.0.0

2018.06.14, v1.0.2

feature:

  • (mode) move out permissions

2018.06.12, v1.0.1

fix:

  • (npmignore) legacy

2018.06.12, v1.0.0

feature:

  • (format) es2015-ify

2015.02.18, v0.9.6

feature:

  • (bower) add
  • (format) scope -> global