2020-05-15 12:40:05 +02:00
|
|
|
# @sapphirecode/consts
|
2020-03-14 13:52:50 +01:00
|
|
|
|
2020-05-15 12:40:05 +02:00
|
|
|
version: 1.1.x
|
2020-03-14 13:52:50 +01:00
|
|
|
|
2020-05-15 12:40:05 +02:00
|
|
|
useful constant values that are used in many applications
|
2020-03-14 13:52:50 +01:00
|
|
|
|
2020-05-15 12:40:05 +02:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
npm:
|
|
|
|
|
|
|
|
> npm i --save @sapphirecode/consts
|
|
|
|
|
|
|
|
yarn:
|
|
|
|
|
|
|
|
> yarn add @sapphirecode/consts
|
2020-03-14 13:52:50 +01:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-05-15 12:40:05 +02:00
|
|
|
there are many constants, too many to document by hand so I suggest you use
|
|
|
|
autocomplete or look into the source.
|
|
|
|
|
2020-03-14 13:52:50 +01:00
|
|
|
```js
|
2020-05-15 12:40:05 +02:00
|
|
|
const {http} = require('@sapphirecode/consts');
|
2020-03-14 13:52:50 +01:00
|
|
|
|
2020-05-15 12:40:05 +02:00
|
|
|
console.log(http.status_ok) // 200
|
2020-03-14 13:52:50 +01:00
|
|
|
```
|
2020-05-15 12:40:05 +02:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
MIT © Timo Hocker <timo@scode.ovh>
|