ts-to-mongoose
v1.0.0
Published
typescript convert to mongoose schema
Downloads
3
Maintainers
Readme
This is the repository which I regret to develop...
What I did...
- Find module which can be resolved my issue.
- But I could not found the module.
- So, I developed the module.
- Then, Considering name to publish as a library.
- The name is already used.
- 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