Socket
Socket
Sign inDemoInstall

@cloudcmd/formatify

Package Overview
Dependencies
3
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cloudcmd/formatify

format directory content


Version published
Weekly downloads
131
decreased by-20.12%
Maintainers
1
Install size
31.1 kB
Created
Weekly downloads
 

Readme

Source

Formatify License NPM version Dependency Status Build Status Coverage Status

Format directory content received by readify.

Install

npm i @cloudcmd/formatify --save

API

formatify(files)

  • files - files list

Examples

const files = [{
    name: 'sortify.js',
    size: 3538,
    date,
    owner: 0,
    mode: 33204,
}, {
    name: 'readify.js',
    size: 1629,
    date: 2016-11-21T13:37:55.275Z,
    owner: 0,
    mode: 33204,
}];

formatify(files)
// returns
[{
    name: 'formatify.js',
    size: '3.46kb',
    date: '12.01.2017',
    owner: 0,
    mode: 'rw- rw- r--',
}, {
    name: 'readify.js',
    size: '1.59kb',
    date: '12.01.2017',
    owner: 0,
    mode: 'rw- rw- r--',
}];
  • Sortify - sort directory content by name, size, date
  • Readify - read directory content with file attributes: size, date, owner, mode

License

MIT

Keywords

FAQs

Last updated on 11 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc