2.3.0 • Published 4 months ago

@docgeni/toolkit v2.3.0

Weekly downloads
36
License
MIT
Repository
github
Last release
4 months ago

@docgeni/toolkit

Toolkit for Docgeni or cli tools

Usage

const { toolkit } = require('@docgeni/toolkit');

toolkit.initialize({ baseDir: __dirname});
toolkit.print.info(`Hey, I'm Docgeni!`);
toolkit.print.success(`success`);

Here's what's available inside the toolkit object you see all over Docgeni.

NameDescription3rd party lib
printtools to print output to the command linechalk, ora
stringssome string helpers like case conversion, etc.camelcase, pluralize
templatecode generation from templateshandlebars
fsability to copy, move & delete files & directoriesfs-extra
timestampformat timestamp
utilssome utils functions like isString, isFunction, keyBy

Accessing Toolkit Directly

You can access almost all of Docgeni 's toolkit tools without toolkit.

const { Print, fs, strings } = require('@docgeni/toolkit');
// or
const { Print } = require('@docgeni/toolkit/print');
const * as fs = require('@docgeni/toolkit/filesystem');
const * as strings = require('@docgeni/toolkit/strings');

const print = new Print();
print.info(`Hey, I'm Docgeni!`);
fs.dir('/tmp/peter');
print.error('error);
2.3.0

4 months ago

2.3.0-next.0

5 months ago

2.2.2

6 months ago

2.1.0-next.2

1 year ago

2.1.0-next.1

1 year ago

2.1.0-next.4

1 year ago

2.1.0-next.3

1 year ago

2.1.0-next.11

1 year ago

2.1.0-next.0

1 year ago

2.1.0-next.10

1 year ago

2.1.0-next.9

1 year ago

2.1.0-next.6

1 year ago

2.1.0-next.5

1 year ago

2.1.0-next.8

1 year ago

2.1.0-next.7

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0-next.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.0-next.26

2 years ago

1.2.0-next.27

2 years ago

1.2.0-next.24

2 years ago

1.2.0-next.25

2 years ago

1.2.0-next.20

2 years ago

1.2.0-next.22

2 years ago

1.2.0-next.21

2 years ago

1.2.0-next.23

2 years ago

1.2.0-next.15

2 years ago

1.2.0-next.17

2 years ago

1.2.0-next.19

2 years ago

1.2.0-next.18

2 years ago

1.2.0-next.14

2 years ago

1.2.0-next.11

2 years ago

1.2.0-next.13

2 years ago

1.2.0-next.12

2 years ago

1.2.0-next.9

2 years ago

1.2.0-next.6

2 years ago

1.2.0-next.10

2 years ago

1.2.0-next.5

2 years ago

1.2.0-next.8

2 years ago

1.2.0-next.7

2 years ago

1.2.0-next.4

2 years ago

1.2.0-next.3

2 years ago

1.2.0-next.2

2 years ago

1.2.0-next.1

2 years ago

1.2.0-next.0

2 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.1.0-next.9

3 years ago

1.1.0-next.8

3 years ago

1.1.0-next.7

3 years ago

1.1.0-next.6

3 years ago

1.1.0-next.5

3 years ago

1.1.0-next.4

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.3

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.5

3 years ago

1.0.0-beta.6

3 years ago

1.0.0-beta.7

3 years ago

1.0.0-beta.1

3 years ago

1.0.0-beta.0

3 years ago

0.6.0-next.16

3 years ago

0.6.0-next.18

3 years ago

0.6.0-next.17

3 years ago

0.6.0-next.14

3 years ago

0.6.0-next.13

3 years ago

0.6.0-next.15

3 years ago

0.6.0-next.12

3 years ago

0.6.0-next.10

3 years ago

0.6.0-next.11

3 years ago

0.6.0-next.9

3 years ago

0.6.0-next.7

3 years ago

0.6.0-next.6

3 years ago

0.6.0-next.8

3 years ago

0.6.0-next.5

3 years ago

0.6.0-next.4

3 years ago

0.6.0-next.3

3 years ago

0.6.0-next.2

3 years ago

0.6.0-next.0

3 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.1.0-alpha.13

4 years ago

0.1.0-alpha.12

4 years ago

0.1.0-alpha.11

4 years ago

0.1.0-alpha.10

4 years ago

0.1.0-alpha.9

4 years ago

0.1.0-alpha.8

4 years ago

0.1.0-alpha.7

4 years ago

0.1.0-alpha.6

4 years ago

0.1.0-alpha.0

4 years ago

0.0.1-alpha.0

4 years ago