Catalog npm
Back to packageRELEASE DETAILS

0.6.2

npm

@0xproject/utils

0x TS utils

Published22 May 2018
Direct dependencies17
Transitive dependenciesNot calculated

README

Current package documentation

@0xproject/utils

Utils to be shared across 0x projects and packages

Installation

yarn add @0xproject/utils

If your project is in TypeScript, add the following to your tsconfig.json:

"compilerOptions": {
    "typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
}

Usage

import { addressUtils, bigNumberConfigs, classUtils, intervalUtils, promisify } from '@0xproject/utils';

Troubleshooting

If you are still seeing TS type errors complaining about missing DOM types such as Response:

error TS2304: Cannot find name 'Response'.

Then you need to explicitly add the dom lib to your compiler options in tsconfig.json. The dom library is included by default, but customizing the lib option can cause it to be dropped.

"compilerOptions": {
    "lib": [..., "dom"],

Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0xproject/utils yarn build

Or continuously rebuild on change:

PKG=@0xproject/utils yarn watch

Clean

yarn clean

Lint

yarn lint

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 17

Native requirements
17 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xproject/types
Environment
{
  "local_name": "@0xproject/types",
  "alias": false,
  "peer_metadata": null
}
^0.7.0runtime
@0xproject/typescript-typings
Environment
{
  "local_name": "@0xproject/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^0.3.2runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^8.0.53runtime
bignumber.js
Environment
{
  "local_name": "bignumber.js",
  "alias": false,
  "peer_metadata": null
}
~4.1.0runtime
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^3.0.15runtime
js-sha3
Environment
{
  "local_name": "js-sha3",
  "alias": false,
  "peer_metadata": null
}
^0.7.0runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.4runtime
web3
Environment
{
  "local_name": "web3",
  "alias": false,
  "peer_metadata": null
}
^0.20.0runtime
@0xproject/monorepo-scripts
Environment
{
  "local_name": "@0xproject/monorepo-scripts",
  "alias": false,
  "peer_metadata": null
}
^0.1.20development
@0xproject/tslint-config
Environment
{
  "local_name": "@0xproject/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^0.4.18development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
4.14.104development
copyfiles
Environment
{
  "local_name": "copyfiles",
  "alias": false,
  "peer_metadata": null
}
^1.2.0development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.8.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
2.7.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "79056a0a7be88581bcb92bce01a0f1f1b3074397",
  "tarball": "https://registry.npmjs.org/@0xproject/utils/-/utils-0.6.2.tgz",
  "fileCount": 37,
  "unpackedSize": 40126,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBFLuCRA9TVsSAnZWagAAt04P/0rFsuQ2fpcXNgBAyJyS\nyfms13URiGLxVR0oSlZ82ec3QSfvZySMmZnSnRj1K+AfwO/3BO6a43D1eexZ\nE3Q3OlcrRE8+ujaPs63EX8Qzk5imX2jVCG911c4o0HCuhh7mojlBGFzbsqq6\nfgWxpLj6UcwN3OXT2cKjqUD1WCFsTGcrl3g37i2JZIC/0dirzsmsPCmj+WH1\na7N5cMzDr4qRp2PayoWROW30mmwKumLUN9Vm6q/CE4klv6do6ZGh00lNbgPE\nWScIPvCI0bR1hQ6mn/hfrI46V3n6ptlhzMGAkWVRizZhIvFWejkd9DVzlxYq\nihP2y5Y/UjXYHL0gYPWnhRkamj0730jZr3/TNSmXmjSmBp3H4gFgcAyo9t93\nVTq4niuLzX2FpzQGgn80Z3kWpaMjnXTNfe7s3wjI1UnIfOVyOxqahdHpkjKS\nnYTXF/5XCer+/A65sKmp+6aznGCcX+LV883taM/nnoP8g4pAIMsYGv6ud2By\nNiFwAYjYwzhdyomCQue3FlYRxrupQOvrgBtnMz2f/94nKqM8NZQIwRKiNcH5\nLzvbjH5rLfUYvMGDDXeStj1VwLWbWK+mo400157HIfaPVzfE6AAGm6NBefew\nQHUwaY49FQYotqC43BtF4frIvxBGbrXJAoCc7xHiqZyUESkRmhN87fdUpxq3\n9XiD\r\n=/YbP\r\n-----END PGP SIGNATURE-----\r\n",
  "integrity": "sha512-na1ExaB7sjrErAzIxeWl0blwCSC2fCvdQ/wq3q5JlSD97BbXqcSDnw1MjLi+Fh0xjVYVvTA++S1e3uCzMSNHKw==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQC7YJaALFi2+6Nf5CnG0fDiIsrFvpiu3hRAGC4VtLwPsQIhAJjtWyF47aCI+iBOFRrR29Ymo9CT7MgxGgKifQauEs7G"
    }
  ]
}

Repository

PENDING
0xproject/0x-monorepo

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xproject/0x.js

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:5acbd8dd94b33f93fd12d4ae2a50cf30128f8d7e1c2f8d861cac9ccf57a49d44

Other collected versions

2.0.24 Oct2.0.028 Sept1.0.1125 Sept1.0.1025 Sept1.0.921 Sept1.0.85 SeptView all collected versions →