1.0.0 • Published 3 years ago

ts-to-mongoose v1.0.0

Weekly downloads
72
License
-
Repository
-
Last release
3 years ago

This is the repository which I regret to develop...

What I did...

  1. Find module which can be resolved my issue.
  2. But I could not found the module.
  3. So, I developed the module.
  4. Then, Considering name to publish as a library.
  5. The name is already used.
  6. The conflicted module is what I want to use...

Recommend to use ts-mongoose instead.

What is this module anyway?

The module load typescript file as a source and output mongoose schema definitions.

How to use this anyway?

npm i --save-dev ts-to-mongoose

# -s / --source: typescript file for mongoose schema definitions. You can specify glob pattern.
# -d / --dist: directory to output mongoose schema definitions.
npx ts-to-mongoose -s ${path_to_ts_file_source} -d ${dist_dir_path}

Example

npx ts-to-mongoose -s examples/ts/**/*.ts -d examples/schema

source - TypeScript

dist - Generated Mongoose Schema

1.0.0

3 years ago

0.0.14

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago