// npm 패키지
@putout/cli-ruler
toggle rules in .putout.json
버전
9
메인테이너
1
라이선스
MIT
최초 publish
2021-09-02
publisher
coderaiser
tarball
6,027 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2026-06-04
// exfil path
what is read → where it shipssteals
- ● Seed phrase
sends to
(no destination string extracted — payload may be dynamic / obfuscated)
evidence in excerpt
> "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", > "homepage": "https://github.com/coderaiser/putout/tree/master/packages/cli-ruler#readme", > "url": "git+https://github.com/coderaiser/putout.git" > "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", > "homepage": "https://github.com/coderaiser/putout/tree/master/packages/cli-ruler#readme",
// offending code· @5.0.0· 1 file flagged
- @5.0.0··AUTO-PUBLISHED·publisher: coderaiserheuristic 64/100static flags 2llm skippednew-publisher:16dhas-source-repopublisher-multi-name-burst:7publisher-version-pump:9reads-seed-phrasepublic-github-push
// offending code· 1 file flaggedpatterns: 2
--- package/package.json (excerpt) --- { "name": "@putout/cli-ruler", "version": "5.0.0", "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", "description": "toggle rules in .putout.json", "homepage": "https://github.com/coderaiser/putout/tree/master/packages/cli-ruler#readme", "main": "lib/index.js", "type": "module", "release": false, "tag": false, "changelog": false, "repository": { "type": "git", "url": "git+https://github.com/coderaiser/putout.git" }, "scripts": { "test": "madrun test", "watch:test": "madrun watch:test", "lint": "madrun lint", "fresh:lint": "madrun fresh:lint", "lint:fresh": "madrun lint:fresh", "fix:lint": "madrun fix:lint", "coverage": "madrun coverage", "report": "madrun report" }, "dependencies": { "try-to-catch": "^4.0.0" }, "keywords": [ "putout", "cli" ], "devDependencies": { "eslint": "^10.0.0", "eslint-plugin-putout": "^31.0.0", "madrun": "^13.0.0", "nodemon": "^3.0.1", "putout": "*", "superc8": "^12.0.0", "supertape": "^13.0.0" }, "license": "MIT", "engines": { "node": ">=22" }, "publishConfig": { "access": "public" } } --- package.json (entry) --- { "name": "@putout/cli-ruler", "version": "5.0.0", "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", "description": "toggle rules in .putout.json", "homepage": "https://github.com/coderaiser/putout/tree/master/packages/cli-ruler#readme", "main": "lib/index.js", "type": "module", "release": false, "tag": false, "changelog": false, "repository": { "type": "git", "url": "git+https://github.com/coderaiser/putout.git" }, "scripts": { "test": "madrun test", "watch:test": "madrun watch:test", "lint": "madrun lint", "fresh:lint": "madrun fresh:lint", "lint:fresh": "madrun lint:fresh", "fix:lint": "madrun fix:lint", "coverage": "madrun coverage", "report": "madrun report" }, "dependencies": { "try-to-catch": "^4.0.0" }, "keywords": [ "putout", "cli" ], "devDependencies": { "eslint": "^10.0.0", "eslint-plugin-putout": "^31.0.0", "madrun": "^13.0.0", "nodemon": "^3.0.1", "putout": "*", "superc8": "^12.0.0", "supertape": "^13.0.0" }, "license": "MIT", "engines": { "node": ">=22" }, "publishConfig": { "access": "public" } } --- index.js (entry) --- import {join} from 'node:path'; import process from 'node:process'; import {tryToCatch} from 'try-to-catch'; import * as ruleProcessor from './rule-processor.js'; const cwd = process.cwd(); const {parse, stringify} = JSON; const defaultData = stringify({ rules: {}, }); export async function ruler(places, {disable, disableAll, enable, enableAll, readFile, writeFile}) { const name = join(cwd, '.putout.json'); const [, data = defaultData] = await tryToCatch(readFile, name, 'utf8'); const object = parse(data); let updated = object; if (enable) updated = ruleProcessor.enable(enable, object); else if (disable) updated = ruleProcessor.disable(disable, object); else if (enableAll) updated = ruleProcessor.enableAll(places, object); else if (disableAll) updated = ruleProcessor.disableAll(places, object); await writeFile(name, stringify(updated, null, 4)); }
