# deriv-shared-am

> deriv shared

Latest version **1.0.0** (published 2019-12-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install deriv-shared-am
pnpm add deriv-shared-am
yarn add deriv-shared-am
bun add deriv-shared-am
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-12-09 |
| First published | 2019-12-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 125.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 101 |
| Author | Deriv |
| Maintainers | cakasuma |

## Links

- npm: https://www.npmjs.com/package/deriv-shared-am
- Repository: https://github.com/binary-com/deriv-app
- Homepage: https://github.com/binary-com/deriv-app#readme
- Issues: https://github.com/binary-com/deriv-app/issues
- npm.io page: https://npm.io/package/deriv-shared-am

## Recent versions

- 1.0.0 (latest) — 2019-12-09

## README

# `deriv-shared`
> Responsible for the shared utilities and styles for all packages.

## Index

- [General](docs/README.md) - Contains general philosophy and overview of this package
- [Modules docs](docs/Modules/README.md) - Contains implementation guides (i.e., scaffolding, code usage)

##Commands:
setup :
  ```sh 
  lerna bootstrap
  ```
serve : 
  ```sh 
  npm run serve
  ```
build : 
  ```sh 
  npm run build
  ```
test  :
  ```sh 
  npm run test
  ```

## Usage

### Base styles

#### Fonts, Constants, Mixins, Themes, Devices:
Run `npm i sass-resources-loader --save-dev` and add the following in your webpack css loader

```js {
    loader: 'sass-resources-loader',
    options: {
        resources: require('deriv-shared/utils/index.js'),
    }
}
```

#### Browser css reset:
```scss
@import deriv-shared/src/styles/reset.scss
```

#### Google fonts:
```scss
@import deriv-shared/src/styles/google-fonts.scss
```

### Utility functions
```js
import { toMomemt } 'deriv-shared/utils/date'
```

---
_Source: https://npm.io/package/deriv-shared-am · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
