@immfly/js-tools-kit

1.0.0 • Public • Published

npm Build Status MIT license

js-tools-kit

This package exports modules used through js immfly projects.

Installation

npm install --save-dev @immfly/js-tools-kit

Tools

Shell

Allows to run bash commands.

const { Shell } = require('@immfly/js-tools-kit' )

...
await Shell.execute('echo "Hellow"')

FileWriter

Allows to write files given the output file and its content.

const { FileWriter } = require('@immfly/js-tools-kit' )

...
await FileWriter.write('file.txt', '::content::'))

EnvFiler

Allows generate .env files given the output file and the data to generate.

const { EnvFiler } = require('@immfly/js-tools-kit' )

...
await EnvFiler.build({
  file: 'file.txt',
  data1: '::data1::',
  data2: '::data2::'
})

The result of this example whould be a file named file.txt with this content:

DATA1=::data1
DATA2=::data2

Contributing

Contributions welcome; Please submit all pull requests the against master branch. If your pull request contains JavaScript patches or features, you should include relevant unit tests. Please check the Contributing Guidelines for more details. Thanks!

Author

Albert Pérez Farrés

License

Package Sidebar

Install

npm i @immfly/js-tools-kit

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.61 kB

Total Files

11

Last publish

Collaborators

  • ricrm88
  • ricardrm88
  • albertitoper14