New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cloudcmd/formatify

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudcmd/formatify

format directory content

latest
Source
npmnpm
Version
3.1.0
Version published
Weekly downloads
2.2K
8.34%
Maintainers
1
Weekly downloads
 
Created
Source

Formatify License NPM version Build Status Coverage Status

Format directory content received by readify.

Install

npm i @cloudcmd/formatify --save

API

formatify(files)

  • files - files list

Examples

import {formatify} from '@cloudcmd/formatify';

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

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

License

MIT

Keywords

format

FAQs

Package last updated on 20 Mar 2026

Did you know?

Socket

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