{"_id":"@alexkeating/clarity-native-bin","_rev":"1-e7cc66714616e6ba07b9cc1dd94ee4ed","name":"@alexkeating/clarity-native-bin","dist-tags":{"latest":"0.3.0"},"versions":{"0.3.0":{"name":"@alexkeating/clarity-native-bin","version":"0.3.0","description":"Library for providing the native Clarity CLI binary","author":{"name":"Blockstack","email":"engineering@blockstack.com","url":"https://blockstack.com/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/blockstack/clarity-js-sdk.git"},"homepage":"https://github.com/blockstack/clarity-js-sdk/tree/master/packages/clarity-native-bin#readme","bugs":{"url":"https://github.com/blockstack/clarity-js-sdk/issues"},"publishConfig":{"access":"public"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=10"},"keywords":["clarity","blockstack","smart contract","rust"],"scripts":{"build":"npm run clean && npm run compile","clean":"shx rm -rf ./lib tsconfig.build.tsbuildinfo","compile":"tsc --build tsconfig.build.json","prepublishOnly":"npm run build","lint":"tslint -p tsconfig.json 'src/**/*.ts' 'test/**/*.ts'","lint-fix":"tslint --fix -p tsconfig.json 'src/**/*.ts' 'test/**/*.ts'","test":"npm run build && nyc mocha","postinstall":"node postInstallScript.js"},"dependencies":{"fs-extra":"^8.0.1","node-fetch":"^2.6.0","semver":"^6.1.1","tar":"^4.4.8"},"devDependencies":{"@types/chai":"^4.1.7","@types/fs-extra":"^8.0.0","@types/mocha":"^5.2.7","@types/node":"^10","@types/node-fetch":"^2.3.4","@types/semver":"^6.0.1","@types/tar":"^4.0.0","chai":"^4.2.0","mocha":"^6.1.4","nyc":"^14.1.1","shx":"^0.3.2","source-map-support":"^0.5.12","ts-node":"^8.2.0","tslint":"^5.17.0","typescript":"^3.5.1"},"nyc":{"all":true,"cache":false,"extension":[".ts"],"include":["src"],"reporter":["text","lcov"]},"_id":"@alexkeating/clarity-native-bin@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"alexkeating","email":"atk315315@gmail.com"},"dist":{"integrity":"sha512-koWV1+34OiFiijl20fp49SizwutvJRIFE6nGhkA5MHz3To5rFQjMD3ehSG8HCpNwn/6HC9a1d9v0/W8knAbm1g==","shasum":"d69777e7fd1d2a7d655d7f1ea0f31c1d94ece3e0","tarball":"https://registry.npmjs.org/@alexkeating/clarity-native-bin/-/clarity-native-bin-0.3.0.tgz","fileCount":33,"unpackedSize":56841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnhW+CRA9TVsSAnZWagAAIP4P/AweLu9Ot9wHGtJmWmlM\nU7TrzfQxfhQhOFyOxWLtlQk/+aeOEq4Z6Z3GLmxZp8m8eWXR3Qim/Fsh+8QF\nDtvdajWTZWPU6nCavAvJFLTDof7p28NiIGVqan1gnCoZIkqgIihMkjBlSWdn\nNmAHzp1toUZH87kqc8g5du1TlTmpxn4p2A+q8cLFIhKkG88jnAv4MGN3kkMd\na7dpYFf1UlMW37/URCHEh443iXFo/jW6t/1VMwNRs8B6hmqyOr0IpTNWbOXN\nJv6Zx0Mc3NHpHA2UWbqj9Q1FEW18ZpMui8mO82BF16aF6gxSMy/s/l8ic4uH\nsOAFCgkBK55bciEIxxwMO1Kk3WMCy4cxpCki2h2mqwKkDiY6YpHMPRcieoG/\nvZ/zN8hU44KEfxEg2ee3uR2VAKIh8JxO2dvNfY3udV7dQtzT2+abCHUx36Lf\ngtMm7GbCo06n9oBcPkOh1bkoM5/mr0O4GQB/YRzxgsCwhVD6dZXTucjdU1J4\niOS/dt38lw90aBCMVUEZQ7chpKT9GqSCYFiveIQfe6SV+dOCqRGYGsYVUfSY\nrsuyNLc7+veWgA6vokTCovtighZdM28hkaS4J7E72m6iMa/MrQYgo/D5XzPR\ndg5bmkdn1OaCNH4o9/tyodoXk6H2XSNF+9T4H+JXNgeh3UbOIDw8iMAhtBu6\nF4e3\r\n=s8MK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/5dxomg5l0aU8Q+w74W5MFBiW/r5oWY7BtJ427qi1HAIhAOUPj7TiJixXzBXpK/0WEsNUacIQQocglt7tz8DgqerK"}]},"maintainers":[{"name":"alexkeating","email":"atk315315@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clarity-native-bin_0.3.0_1604195774413_0.36314394392807015"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-01T01:56:14.358Z","0.3.0":"2020-11-01T01:56:14.541Z","modified":"2022-04-04T12:40:52.946Z"},"maintainers":[{"name":"alexkeating","email":"atk315315@gmail.com"}],"description":"Library for providing the native Clarity CLI binary","homepage":"https://github.com/blockstack/clarity-js-sdk/tree/master/packages/clarity-native-bin#readme","keywords":["clarity","blockstack","smart contract","rust"],"repository":{"type":"git","url":"git+https://github.com/blockstack/clarity-js-sdk.git"},"author":{"name":"Blockstack","email":"engineering@blockstack.com","url":"https://blockstack.com/"},"bugs":{"url":"https://github.com/blockstack/clarity-js-sdk/issues"},"license":"MIT","readme":"# @blockstack/clarity-native-bin\n\nThis package installs the system-specific native [`clarity-cli`](https://github.com/blockstack/blockstack-core/blob/develop/src/clarity_cli.rs) binary. \n\nThe JS module also provides programmatic access to the binary file path and the installation functions. \n\n## Installation\n\nAn installation script runs automatically when this package is installed via `npm install` (or an equivalent package install tool/command). Pre-built dist files are downloaded if the platform & arch is supported, otherwise, it attempts to compile the binary from source. \n\n\n#### Controlling Installation Options\n\nForce install via source compilation by specifying either the `BLOCKSTACK_CORE_SOURCE_TAG` or `BLOCKSTACK_CORE_SOURCE_BRANCH` \nenvironment variables. The variable must be available during the npm install script. If found then the script will not attempt to download \na pre-compiled distributable. The value must be set to a git tag or branch on the `https://github.com/blockstack/blockstack-core` \nrepo. \n\nTo move a local copy of the `clarity-cli` binary from a different folder on your machine, include the environment variable `BLOCKSTACK_CORE_SOURCE_PATH`.\n\nFor example, the following commands test a blockstack-core repo feature branch using the `clarity-tutorials` package:\n```\ngit clone git@github.com:blockstack/clarity-js-sdk.git\ncd clarity-js-sdk\nBLOCKSTACK_CORE_SOURCE_BRANCH=\"feature/new-thing\" npm install\ncd packages/clarity-tutorials\nnpm test\n```\n\nOr, for an already setup local SDK dev environment, trigger an `npm install` of this package. Examples:\n```\ncd clarity-js-sdk\nBLOCKSTACK_CORE_SOURCE_BRANCH=\"feature/new-thing\" npm run rebuild\n```\n_Or_\n```\ncd clarity-js-sdk/packages/clarity-native-bin\nBLOCKSTACK_CORE_SOURCE_BRANCH=\"feature/new-thing\" npm install\n```\n\n\n## Source Compilation Requirements\n\nIf compiling from source then the Rust toolchain and a C compiler must be available. \n\n* Specifically, `cargo` must be available in PATH. [rustup](https://rustup.rs/) is the recommended toolchain installer. \n* See C compiler requirement details at [cc-rs](https://github.com/alexcrichton/cc-rs) (gcc, clang, and msvc are supported). \n\n\n","readmeFilename":"README.md"}