fault 1.0.0
“Functional errors with formatted output”
Invokes preserved console method with argumentsPackage.json declares a files allowlist
SHA-2567ee538c0a983b27463b2bac7fcf9ad6478be8a4b4fb2a2cb1e134eee508bcc3c
MaleculeH(Po₂)Md(Pa)
Evidence
⋯12 lines
13 "string"
14 ],
15 "repository": "https://github.com/wooorm/fault",
16 "bugs": "https://github.com/wooorm/fault/issues",
17 "author": "Titus Wormer <[email protected]> (http://wooorm.com)",
18 "contributors": [
19 "Titus Wormer <[email protected]> (http://wooorm.com)"
20 ],
21 "files": [
22 "index.js"
23 ],
⋯10 lines
34 "xo": "^0.17.0"
35 },
36 "scripts": {
37 "build-md": "remark . --quiet --frail",
38 "build-bundle": "browserify index.js --bare -s fault > fault.js",
39 "build-mangle": "esmangle fault.js > fault.min.js",
40 "build": "npm run build-md && npm run build-bundle && npm run build-mangle",
41 "lint": "xo",
42 "test-api": "node test.js",
43 "test-coverage": "nyc --reporter lcov tape test.js",
44 "test": "npm run build && npm run lint && npm run test-coverage"
45 },
46 "nyc": {
47 "check-coverage": true,
48 "lines": 100,
1'use strict';
2
3var formatter = require('format');
4
5module.exports = exports = create(Error);
⋯5 lines
23:15… mattedError(format) {
24 if (format) {
25 format = formatter.apply(null, arguments);
26 }
27
28 return new EConstructor(format);
29 }
30}
No evidence locations were recorded for this file. Raw result