Skip to content

Commit

Permalink
adding-example
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-alex2006hw committed Apr 29, 2017
1 parent a4480f0 commit 02eb671
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
0.0.4 coverage-travis-badge
0.0.5 fixing-travis-badge
0.0.6 update-changelog
v0.0.7 Version 0.0.7 - add sweet badges
38 changes: 38 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

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

# Coverage directory used by tools like istanbul
coverage
.coveralls.yml

# nyc test coverage
.nyc_output

# 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 directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history
15 changes: 15 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

[![Coverage Status](https://coveralls.io/repos/github/usertoken/token-memory/badge.svg)](https://coveralls.io/github/usertoken/token-memory)
[![Build Status](https://travis-ci.org/usertoken/token-memory.svg)](https://travis-ci.org/usertoken/token-memory)
memory example
=========

A small example that uses token-memory

## Installation

`npm install`

## Usage

node index.js
5 changes: 5 additions & 0 deletions example/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var numFormmater = require('token-memory');

var formattedNum = numFormmater(234324234);

console.log(formattedNum);
6 changes: 6 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dependencies": {
"project-name": "*",
"token-memory": "^0.0.1"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "token-memory",
"version": "0.0.7",
"version": "0.0.8",
"description": "temporal and durable memory as a module https://ut.usertoken.com/memory",
"main": "index.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions scripts/npmversion
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
VERSION='0.0.1'
DESC='latest patch'
[ ! -z $1 ] && VERSION=$1
[ ! -z $2 ] && DESC=$2

echo "version - ${VERSION} : desc - ${DESC}"
npm version patch -m "Version ${VERSION} - ${DESC}"

0 comments on commit 02eb671

Please sign in to comment.