Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@untool/defaults
Advanced tools
@untool/defaults
@untool/defaults
is a very simple preset that sets up a basic untool
environment featuring Yargs, Express, Webpack, and React support.
If you need to set up a new project using @untool/defaults
, just use the package manager of your choice to install it:
$ yarn add @untool/defaults react react-dom react-router-dom react-helmet
# OR npm install @untool/defaults react react-dom react-router-dom react-helmet
Afterwards, you need to add a new untool
section to your project's package.json
file:
{
"scripts": {
"start": "un start"
},
"untool": {
"presets": ["@untool/defaults"]
}
}
Additionally you might want to add a start script using untool
's CLI functionality to be able to use your package manager to start your application:
$ yarn start -p # OR npm start -p
module.exports = {
presets: [
'@untool/express',
'@untool/react',
'@untool/webpack',
'@untool/yargs',
],
};
The code block above mirrors @untool/defaults/preset.js
' actual source code in its entirety. Please refer to the listed mixins and presets for more information. While @untool/defaults
does not really provide any relevant settings of its own, @untool/core
does:
Property | Type | Default |
---|---|---|
name | string | PACKAGE_JSON_NAME |
version | string | PACKAGE_JSON_VERSION |
rootDir | string | PACKAGE_JSON_DIRECTORY |
name
The application name; used throughout the untool
ecosystem to individualize log output, asset file names, and even HTML IDs. This value is determined by checking your application's package.json file and falling back to its directory name. Do not override - simply update the name
field in your package.json
file.
version
The application version; can come handy for asset versioning and logging, but not currently used in untool
's default modules. This value is determined by checking your application's package.json file. Do not override - simply update the version
field in your package.json
file.
rootDir
The application's filesystem context; used heavily throughout the untool
ecosystem for module resolution, build configuration and the like. This value is determined by finding the directory your package.json
file is in. Really, do not override this unless you know exactly what you are doing.
FAQs
untool default preset
The npm package @untool/defaults receives a total of 1 weekly downloads. As such, @untool/defaults popularity was classified as not popular.
We found that @untool/defaults demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.