![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Tool for creation of database schemas and others boring jobs usefull for ideman
and ideman-acl
node modules.
It supports postgres
, mysql
, mariasql
and sqlite3
.
In your project root run from command line:
$ npm install -g ideman-cli
ideman-cli
provides a set of interactive commands that can be used from command line:
$ ideman-cli <command> [arguments]
The availables commands are:
Initializes a configuration for database connection.
Example
$ ideman-cli config
Initializes tables names.
Example
$ ideman-cli tables
Resets all configurations to default.
Example
$ ideman-cli reset
Shows a JSON object with current configurations.
Example
$ ideman-cli list [development|production]
Shows the current environment.
Example
$ ideman-cli env
Switches environment.
Example
$ ideman-cli switch
Initializes database schemas for specified application. If force
was specified, tables will be dropped.
If application
was not specified, it takes the application value set into configuration.
Example
$ ideman-cli init [ideman|ideman-acl] [force]
Inserts a new entity into database.
Example
$ ideman-cli insert [user|client|token|code|role|userRole|permission|resource|policy]
Removes an existing entity from database.
Example
$ ideman-cli delete [user|client|token|code|role|userRole|permission|resource|policy]
Import entities from a JSON file. File to import must be in this format:
{
"data": [
{
"entity": "user",
"columns": {
"username": "admin",
"password": "$2a$05$Sbvj/0fQB/H/GaQZJg88iOP/ppZXTEtwCEF1Iff0hCt1t/PcJIfDa",
"email": "admin@node.com",
"firstName": "super",
"lastName": "administrator"
},
"returning": "id"
},
{
"entity": "client",
"columns": {
"name": "dashboard",
"secret": "a1l4PsbkgQHgZzaN1lFQSw==",
"description": "the dashboard client application",
"domain": "localhost"
},
"returning": "id"
}
]
}
Example
$ ideman-cli import [path]
Ciphers a text.
Example
$ ideman-cli cipher
Deciphers a text.
Example
$ ideman-cli decipher
Crypts a text.
Example
$ ideman-cli crypt
The MIT License
Copyright (c) 2016 Michele Andreoli http://thinkingmik.com
FAQs
Node command line tool to automate database creation
The npm package ideman-cli receives a total of 1 weekly downloads. As such, ideman-cli popularity was classified as not popular.
We found that ideman-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.