
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
onex-utils
Advanced tools
沉淀业务开发过程中编写的一些业务函数和实现上采用的一些方案,避免业务开发过程中多仓库之间的代码的复制粘贴,将业务开发过程中将一些能力沉淀的此仓库中进行长期维护和迭代
https://unity-template.github.io/onex-utils/index.html
babel、build-script插件实现按需加载构建TypeDoc支持TypeScript interface 转 markdown 文档生成Github Action 持续集成和持续交付(静态扫描、安全扫描、自动测试...)$ npm install onex-utils --save
$ yarn add onex-utils --save
import { url } from 'onex-utils';
const url_params_key = url.getUrlParam('key');
npm run build: 项目构建命令npm run test: 项目运行单元测试npm run commit: 提交规范化commitnpm run lint: 代码格式进行校验npm version patch: 发布正式包Github Issue编写features或者Bugfork仓库编写代码然后提交Pull Request$ npm i --save onex-utils
$ npm i --save-dev babel-plugin-onex-utils @babel/cli @babel/preset-env
Transforms
import {capitalize, map} from "onex-utils";
map([], capitalize);
roughly to
"use strict";
var _map2 = _interopRequireDefault(require("onex-utils/build/utils/map"));
var _capitalize2 = _interopRequireDefault(
require("onex-utils/build/utils/capitalize")
);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
(0, _map2["default"])([], _capitalize2["default"]);
.babelrc
{
"plugins": ["onex-utils"],
"presets": [["@babel/env", {"targets": {"node": 6}}]]
}
Babel API
require("babel-core").transform("code", {
plugins: ["onex-utils"],
presets: [["@babel/env", {targets: {node: 6}}]],
});
webpack.config.js
'module': {
'loaders': [{
'loader': 'babel-loader',
'test': /\.js$/,
'exclude': /node_modules/,
'query': {
'plugins': ['onex-utils'],
'presets': [['@babel/env', { 'targets': { 'node': 6 } }]]
}
}]
}
$ npm install @alib/build-scripts build-plugin-onex-utils build-plugin-component --save-dev
build.json
{
"type": "rax",
"targets": ["web"],
"plugins": ["build-plugin-component", "build-plugin-onex-utils"]
}
package.json
{
"main": "build/index.js",
"types": "./lib",
"files": ["dist", "es", "lib"],
"scripts": {
"build": "build-scripts build"
}
}
cli
$ npm run build
FAQs
The npm package onex-utils receives a total of 2 weekly downloads. As such, onex-utils popularity was classified as not popular.
We found that onex-utils 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.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.