thomas-crane / nen Goto Github PK
View Code? Open in Web Editor NEWA work in progress Node.js environment manager.
License: MIT License
A work in progress Node.js environment manager.
License: MIT License
$ nen rm my-env
Removes the environment with the name my-env
. This command will fail if the requested environment does not exist.
Instead of just being able to specify the specific version of node (a.k.a. v13) you should be able to specify "lts" or "current" to have the environment be set to whatever the corellated version is when it's created (aka "lts" would at this time of posting be converted to "12.16.2").
$ nen stop
The stop command will attempt to deactivate the current environment if one is active. The process of deactivating an environment is as follows:
$NEN_ENV
or $NEN_OLD_PATH
are set.$NEN_ENV
$NEN_OLD_PATH
is set, copy it into $PATH
and then unset it.The readme should explain what the project is, how to use it, and give some examples of usage.
$ nen upgrade env-name -v10
The upgrade command operates in a similar way to the new
command. The user is prompted if the requested version does not exist. Unlike in the new
command, this command will fail if the requested environment does not exist.
This command has the same options as the new
command.
The new command is used to create new Node environments
$ nen new env-name -v13
When the new
command is invoked, the process is as follows.
--yes
or -y
flag is given, that version of node is downloaded..npm-global
folder is made in the environment folder.bin
folder is made in the environment folder which contains symlinks to the node binaries.Options can be given to change the behaviour of the command
Option | Effect |
---|---|
--version , -v |
The node version to use for the new environment. Defaults to latest |
--yes , -y |
Say yes to any prompt |
$ nen list
This command should print the list of environments. Some useful and quick to gather information should be included such as the node version and name.
e.g.
$ nen list
ts @ v13.9.0
ts-legacy @ v10.18.0
It should be possible to give some options to the command to change how it behaves
$ nen list --version 10
ts-legacy @ v10.18.0
Available options
Option | Effect |
---|---|
--version , -v |
Only show environments with that major version. |
$ nen clean
The clean command can be used to remove any node versions which are not being used by any environments.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.