ipfs-mini

v1.1.2
A super tiny module for querying an IPFS node that works in nodejs and the browser.
ipfs api add cat provider node browser

start

npm test

release

npmpub

pretest

npm run lint

prepublish

npm run build

prebuild

npm run build:clean && npm run test

build:clean

npm run test:clean && rimraf ./dist

build:commonjs

cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files

build:umd

cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress

build:umd:min

cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress

build

npm run build:commonjs && npm run test:lib && npm run build:umd && npm run build:umd:min

lint

npm run lint:js

lint:eslint

eslint --ignore-path .gitignore --ignore-pattern **/**.min.js

lint:js

npm run lint:eslint -- .

lint:staged

lint-staged

test:clean

rimraf ./coverage

test

mocha ./src/tests/**/*.js -R spec --timeout 2000000

test:lib

mocha ./lib/tests/**/*.js -R spec --timeout 2000000

test-travis

node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- src/tests/**/*.js -R spec --timeout 2000000

test:karma

cross-env NODE_ENV=test karma start internals/testing/karma.conf.js --single-run

coveralls

npm run test-travis && cat ./coverage/lcov.info | coveralls

Metadata

  • MIT
  • >=6.5.0
  • Unknown
  • released 4/6/2017

Downloads

Maintainers