{ "name": "multiformats", "version": "9.7.0", "description": "Interface for multihash, multicodec, multibase and CID", "main": "./cjs/src/index.js", "types": "./types/src/index.d.ts", "scripts": { "build": "npm run build:js && npm run build:types", "build:js": "ipjs build --tests --main && npm run build:copy", "build:copy": "cp -a tsconfig.json src vendor test dist/ && rm -rf dist/test/ts-use", "build:types": "npm run build:copy && cd dist && tsc --build", "build:vendor": "npm run build:vendor:varint && npm run build:vendor:base-x", "build:vendor:varint": "npm_config_yes=true npx brrp -x varint > vendor/varint.js", "build:vendor:base-x": "npm_config_yes=true npx brrp -x @multiformats/base-x > vendor/base-x.js", "lint": "standard", "test:cjs": "npm run build:js && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser", "test:esm": "npm run build:js && mocha dist/esm/node-test/test-*.js && npm run test:esm:browser", "test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/test-*.js", "test:cjs:browser": "polendina --page --worker --serviceworker --cleanup dist/cjs/browser-test/test-*.js", "test:esm:browser": "polendina --page --worker --serviceworker --cleanup dist/esm/browser-test/test-*.js", "test:ts": "npm run build:types && npm run test --prefix test/ts-use", "test": "npm run lint && npm run test:node && npm run test:esm && npm run test:ts", "test:ci": "npm run lint && npm run test:node && npm run test:esm && npm run test:cjs && npm run test:ts", "coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080" }, "c8": { "exclude": [ "test/**", "vendor/**" ] }, "keywords": [ "ipfs", "ipld", "multiformats" ], "author": "Mikeal Rogers (https://www.mikealrogers.com/)", "license": "(Apache-2.0 AND MIT)", "exports": { ".": { "browser": "./esm/src/index.js", "require": "./cjs/src/index.js", "import": "./esm/src/index.js" }, "./cid": { "browser": "./esm/src/cid.js", "require": "./cjs/src/cid.js", "import": "./esm/src/cid.js" }, "./basics": { "browser": "./esm/src/basics.js", "require": "./cjs/src/basics.js", "import": "./esm/src/basics.js" }, "./block": { "browser": "./esm/src/block.js", "require": "./cjs/src/block.js", "import": "./esm/src/block.js" }, "./traversal": { "browser": "./esm/src/traversal.js", "require": "./cjs/src/traversal.js", "import": "./esm/src/traversal.js" }, "./bases/identity": { "browser": "./esm/src/bases/identity.js", "require": "./cjs/src/bases/identity.js", "import": "./esm/src/bases/identity.js" }, "./bases/base2": { "browser": "./esm/src/bases/base2.js", "require": "./cjs/src/bases/base2.js", "import": "./esm/src/bases/base2.js" }, "./bases/base8": { "browser": "./esm/src/bases/base8.js", "require": "./cjs/src/bases/base8.js", "import": "./esm/src/bases/base8.js" }, "./bases/base10": { "browser": "./esm/src/bases/base10.js", "require": "./cjs/src/bases/base10.js", "import": "./esm/src/bases/base10.js" }, "./bases/base16": { "browser": "./esm/src/bases/base16.js", "require": "./cjs/src/bases/base16.js", "import": "./esm/src/bases/base16.js" }, "./bases/base32": { "browser": "./esm/src/bases/base32.js", "require": "./cjs/src/bases/base32.js", "import": "./esm/src/bases/base32.js" }, "./bases/base36": { "browser": "./esm/src/bases/base36.js", "require": "./cjs/src/bases/base36.js", "import": "./esm/src/bases/base36.js" }, "./bases/base58": { "browser": "./esm/src/bases/base58.js", "require": "./cjs/src/bases/base58.js", "import": "./esm/src/bases/base58.js" }, "./bases/base64": { "browser": "./esm/src/bases/base64.js", "require": "./cjs/src/bases/base64.js", "import": "./esm/src/bases/base64.js" }, "./bases/base256emoji": { "browser": "./esm/src/bases/base256emoji.js", "require": "./cjs/src/bases/base256emoji.js", "import": "./esm/src/bases/base256emoji.js" }, "./hashes/hasher": { "browser": "./esm/src/hashes/hasher.js", "require": "./cjs/src/hashes/hasher.js", "import": "./esm/src/hashes/hasher.js" }, "./hashes/digest": { "browser": "./esm/src/hashes/digest.js", "require": "./cjs/src/hashes/digest.js", "import": "./esm/src/hashes/digest.js" }, "./hashes/sha2": { "browser": "./esm/src/hashes/sha2-browser.js", "require": "./cjs/src/hashes/sha2.js", "import": "./esm/src/hashes/sha2.js" }, "./hashes/identity": { "browser": "./esm/src/hashes/identity.js", "require": "./cjs/src/hashes/identity.js", "import": "./esm/src/hashes/identity.js" }, "./codecs/json": { "browser": "./esm/src/codecs/json.js", "require": "./cjs/src/codecs/json.js", "import": "./esm/src/codecs/json.js" }, "./codecs/raw": { "browser": "./esm/src/codecs/raw.js", "require": "./cjs/src/codecs/raw.js", "import": "./esm/src/codecs/raw.js" } }, "devDependencies": { "@ipld/dag-pb": "^2.1.14", "@stablelib/sha256": "^1.0.1", "@stablelib/sha512": "^1.0.1", "@types/chai": "^4.3.0", "@types/chai-as-promised": "^7.1.4", "@types/mocha": "^9.0.0", "@types/node": "^18.0.0", "@typescript-eslint/eslint-plugin": "^5.6.0", "@typescript-eslint/parser": "^5.6.0", "buffer": "^6.0.3", "c8": "^7.10.0", "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "cids": "^1.1.9", "ipjs": "^5.2.0", "mocha": "^10.0.0", "polendina": "^3.0.0", "standard": "^17.0.0", "typescript": "^4.5.4" }, "standard": { "ignore": [ "dist", "vendor" ] }, "directories": { "test": "test" }, "repository": { "type": "git", "url": "git+https://github.com/multiformats/js-multiformats.git" }, "bugs": { "url": "https://github.com/multiformats/js-multiformats/issues" }, "homepage": "https://github.com/multiformats/js-multiformats#readme", "typesVersions": { "*": { "*": [ "types/src/*" ], "types/*": [ "types/*" ] } }, "release": { "branches": [ "master" ], "plugins": [ [ "@semantic-release/commit-analyzer", { "preset": "conventionalcommits", "releaseRules": [ { "breaking": true, "release": "major" }, { "revert": true, "release": "patch" }, { "type": "feat", "release": "minor" }, { "type": "fix", "release": "patch" }, { "type": "chore", "release": "patch" }, { "type": "docs", "release": "patch" }, { "type": "test", "release": "patch" }, { "scope": "no-release", "release": false } ] } ], [ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits", "presetConfig": { "types": [ { "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, { "type": "chore", "section": "Trivial Changes" }, { "type": "docs", "section": "Trivial Changes" }, { "type": "test", "section": "Tests" } ] } } ], "@semantic-release/changelog", [ "@semantic-release/npm", { "pkgRoot": "dist" } ], "@semantic-release/github", "@semantic-release/git" ] }, "browser": { ".": "./cjs/src/index.js", "./cid": "./cjs/src/cid.js", "./basics": "./cjs/src/basics.js", "./block": "./cjs/src/block.js", "./traversal": "./cjs/src/traversal.js", "./bases/identity": "./cjs/src/bases/identity.js", "./bases/base2": "./cjs/src/bases/base2.js", "./bases/base8": "./cjs/src/bases/base8.js", "./bases/base10": "./cjs/src/bases/base10.js", "./bases/base16": "./cjs/src/bases/base16.js", "./bases/base32": "./cjs/src/bases/base32.js", "./bases/base36": "./cjs/src/bases/base36.js", "./bases/base58": "./cjs/src/bases/base58.js", "./bases/base64": "./cjs/src/bases/base64.js", "./bases/base256emoji": "./cjs/src/bases/base256emoji.js", "./hashes/hasher": "./cjs/src/hashes/hasher.js", "./hashes/digest": "./cjs/src/hashes/digest.js", "./hashes/sha2": "./cjs/src/hashes/sha2-browser.js", "./esm/src/hashes/sha2.js": "./esm/src/hashes/sha2-browser.js", "./cjs/src/hashes/sha2.js": "./cjs/src/hashes/sha2-browser.js", "./hashes/identity": "./cjs/src/hashes/identity.js", "./codecs/json": "./cjs/src/codecs/json.js", "./codecs/raw": "./cjs/src/codecs/raw.js" } }