Skip to content

Commit

Permalink
feat(src): first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Dec 27, 2017
0 parents commit b5d914b
Show file tree
Hide file tree
Showing 13 changed files with 3,831 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
10 changes: 10 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
node_modules
coverage
test
.editorconfig
.eslintignore
.gitignore
.nvmrc
.travis.yml
CHANGELOG.md
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v9
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
language: node_js
node_js:
- "8"
- "9"
notifications:
email: false
after_success:
- npm i -g coveralls codeclimate-test-reporter
- coveralls < coverage/lcov.info
- codeclimate-test-reporter < coverage/lcov.info
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2017 Leonardo Gatica

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# cha-price

[![npm version](https://img.shields.io/npm/v/cha-price.svg?style=flat-square)](https://www.npmjs.com/package/cha-price)
[![npm downloads](https://img.shields.io/npm/dm/cha-price.svg?style=flat-square)](https://www.npmjs.com/package/cha-price)
[![Build Status](https://img.shields.io/travis/lgaticaq/cha-price.svg?style=flat-square)](https://travis-ci.org/lgaticaq/cha-price)
[![Coverage Status](https://img.shields.io/coveralls/lgaticaq/cha-price/master.svg?style=flat-square)](https://coveralls.io/github/lgaticaq/cha-price?branch=master)
[![Code Climate](https://img.shields.io/codeclimate/github/lgaticaq/cha-price.svg?style=flat-square)](https://codeclimate.com/github/lgaticaq/cha-price)
[![devDependency Status](https://img.shields.io/david/dev/lgaticaq/cha-price.svg?style=flat-square)](https://david-dm.org/lgaticaq/cha-price#info=devDependencies)

> Get price of chaucha
## Installation

```bash
npm i -S cha-price
```

## Use

[Try on RunKit](https://npm.runkit.com/cha-price)
```js
const cha = require('cha-price');

cha()
.then(console.log)
.catch(console.error);
```

Result:
```js
XXXXX // a number
```

## Licencia

[MIT](https://tldrlegal.com/license/mit-license)
3 changes: 3 additions & 0 deletions example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const cha = require('cha-price');

const price = await cha()
Loading

0 comments on commit b5d914b

Please sign in to comment.