0.1.3 • Published 5 years ago

types-files-art v0.1.3

Weekly downloads
85
License
MIT
Repository
github
Last release
5 years ago

Doc

inglish, Español

Types files art

file manager

Start

  const tfilesArt=require('types-files-art');

or directly to the route node_modules/types-files-art/src/typesFilesArt

  const tfilesArt=require('./node_modules/types-files-art/src/typesFilesArt');

Functions

Rename

Renaming files.

const nameFileProd={
    "dist/example.js":"dist/example.pro.js",
    "dist/example.css":"dist/example.pro.css",
    "dist/example.html":"dist/example.pro.html",
}
tfilesArt.rename(nameFileProd);

Compress

Compressing content in files.

tfilesArt.compress({
  press:{
    main:{
      path:{
        "src/compress/example.html":"src/compress/example.min.html",
      },
      file:"rename"
    }
  },
})
Propiedates

press: global item, all objects must be within pres:

{
press:{objects}
}

main: It refers to the group of files and properties that are processed, this reference can be any name.

path: refers to the group of files and properties that will be processed, this reference can have any name:

path:{
  "src/compress/example.html":"src/compress/example.min.html",
},

path:{
  "entrada":"salida",
},

file: specifies that the file will be renamed and a new file will not be created, it must be equal to "rename", by not specifying this property a new file will be created.

What comes

  • Property TypesCompres: Specify the type of compression ("super" or "supercompression")
  • Handlers for folders.
  • Property Folders: specifies the path of the folders where the action is executed, thus avoiding placing the path of the file in the path, if not just the name of the file to change example:
tfilesArt.compress({
  press:{
    main:{
      path:{
        "example.html":"example.min.html",
      },
      folders:{
       "src/compress/":"comp/"
       }
    }
  },
})

MIT License

Copyright (c) 2019, Brayan Salgado Navarro

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago