// npm 패키지
filesize.js
filesize.js is a simple browserjs / nodejs library to make filesize human-readable.
버전
3
메인테이너
1
라이선스
MIT
최초 publish
2016-09-22
publisher
atool
tarball
7,407 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2019-10-10
// publisher 캠페인by atool
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.0.0· no static-pattern hits
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
- @2.0.0··AUTO-PUBLISHED·publisher: atoolheuristic 75/100static flags 0llm benign (0.85) via ollamapublisher-multi-name-burst:5osv-flagged:MAL-2026-4133
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s).
// offending code· no static-pattern hits
--- install scripts --- ### prepublishOnly npm run build --- package.json (entry) --- { "name": "filesize.js", "officialName": "filesize.js", "version": "2.0.0", "summary": "filesize.js is a simple browserjs / nodejs library to make filesize human-readable.", "description": "filesize.js is a simple browserjs / nodejs library to make filesize human-readable.", "main": "lib/index.js", "files": [ "lib" ], "scripts": { "clean": "rimraf -rf lib", "lint": "eslint src/**/*", "lint-staged": "lint-staged", "test": "jest", "start": "tsc -w", "ci": "npm run lint && npm run test", "build": "npm run clean && tsc", "prepublishOnly": "npm run build", "coveralls": "cat ./coverage/lcov.info | coveralls" }, "dependencies": {}, "devDependencies": { "@commitlint/cli": "^8.2.0", "@types/jest": "^24.0.18", "@typescript-eslint/eslint-plugin": "^2.3.1", "@typescript-eslint/parser": "^2.3.1", "coveralls": "^3.0.6", "eslint": "^6.4.0", "eslint-config-prettier": "^6.3.0", "husky": "^3.0.5", "jest": "^24.9.0", "jest-electron": "^0.1.7", "lint-staged": "^9.3.0", "prettier": "^1.18.2", "rimraf": "^3.0.0", "ts-jest": "^24.1.0", "typescript": "^3.6.3" }, "jest": { "ru --- index.js (entry) --- "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var spec_1 = require("./spec"); /** * file size * @param bytes * @param fixed * @param spec */ function default_1(bytes, fixed, spec) { if (fixed === void 0) { fixed = 1; } bytes = Math.abs(bytes); var _a = spec_1.SPECS[spec] || spec_1.SPECS['jedec'], radix = _a.radix, unit = _a.unit; var loop = 0; // calculate while (bytes >= radix) { bytes /= radix; ++loop; } return bytes.toFixed(fixed) + " " + unit[loop]; } exports.default = default_1; //# sourceMappingURL=index.js.map
