mongorcd | Automatically load multiple mongo shell startup scripts
kandi X-RAY | mongorcd Summary
kandi X-RAY | mongorcd Summary
mongorcd is a JavaScript library. mongorcd has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.
The mongo shell will automatically load the .mongorc.js file from the user’s home directory (if it exists, and unless --norc is specified). This is very handy for defining various shortcuts, helper functions, and so on; however, managing content in a single file quickly becomes a pain. The traditional approach to solving this problem is to have a similarly-named ".d" directory which contains multiple files, each of which is processed in turn. For example, /etc/sudoers.d/* are processed after /etc/sudoers. This allows cleaner management of disparate content by users (since the content is in separate files). This .mongorc.js script will mimic this behaviour by loading each of the *.js files inside the .mongorc.d direcotyr in the user’s home directory (if such a directory exists). The files are loaded in lexicographical order, which means that leading numbers can be used to ensure that the files are loaded in the desired order. There are also a collection of various example files that can be placed in the .mongorc.d directory. Refer to the comments at the start of each file for a description of the functionality provided, and how to use it.
The mongo shell will automatically load the .mongorc.js file from the user’s home directory (if it exists, and unless --norc is specified). This is very handy for defining various shortcuts, helper functions, and so on; however, managing content in a single file quickly becomes a pain. The traditional approach to solving this problem is to have a similarly-named ".d" directory which contains multiple files, each of which is processed in turn. For example, /etc/sudoers.d/* are processed after /etc/sudoers. This allows cleaner management of disparate content by users (since the content is in separate files). This .mongorc.js script will mimic this behaviour by loading each of the *.js files inside the .mongorc.d direcotyr in the user’s home directory (if such a directory exists). The files are loaded in lexicographical order, which means that leading numbers can be used to ensure that the files are loaded in the desired order. There are also a collection of various example files that can be placed in the .mongorc.d directory. Refer to the comments at the start of each file for a description of the functionality provided, and how to use it.
Support
Quality
Security
License
Reuse
Support
mongorcd has a low active ecosystem.
It has 4 star(s) with 3 fork(s). There are 4 watchers for this library.
It had no major release in the last 6 months.
mongorcd has no issues reported. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of mongorcd is current.
Quality
mongorcd has no bugs reported.
Security
mongorcd has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
mongorcd is licensed under the AGPL-3.0 License. This license is Strong Copyleft.
Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.
Reuse
mongorcd releases are not available. You will need to build from source code and install.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mongorcd
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mongorcd
mongorcd Key Features
No Key Features are available at this moment for mongorcd.
mongorcd Examples and Code Snippets
No Code Snippets are available at this moment for mongorcd.
Community Discussions
No Community Discussions are available at this moment for mongorcd.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mongorcd
Create a .mongorc.d directory in your home directory:.
Create a .mongorc.d directory in your home directory: ``` mkdir ~/.mongorc.d ```
If you have an existing .mongorc.js file, move it inside .mongorc.d: ``` mv ~/.mongorc.js ~/.mongorc.d/00-previous-mongorc.js ``` If you feel like it, you can break this file out into multiple files.
Copy (or symlink) this .mongorc.js into your home directory: ``` cp -i .mongorc.js ~ ```
Copy (or symlink) any desired scripts from the .mongorc.d directory into your own directory: ``` cp -i .mongorc.d/* ~/.mongorc.d ```
Create a .mongorc.d directory in your home directory: ``` mkdir ~/.mongorc.d ```
If you have an existing .mongorc.js file, move it inside .mongorc.d: ``` mv ~/.mongorc.js ~/.mongorc.d/00-previous-mongorc.js ``` If you feel like it, you can break this file out into multiple files.
Copy (or symlink) this .mongorc.js into your home directory: ``` cp -i .mongorc.js ~ ```
Copy (or symlink) any desired scripts from the .mongorc.d directory into your own directory: ``` cp -i .mongorc.d/* ~/.mongorc.d ```
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page