Skip to content

vorob/UserStory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

NPM

UserStory v0.0.8 — client-side logger

Installation

Install backend && frontend

npm install user-story
bower install UserStory

Parse scripts

cat input.js | ./node_modules/user-story/bin/us > output.js

Include client-side part

<script type="text/javascript" src="underscore.js"></script>
<script type="text/javascript" src="UserStory.js"></script>
<script type="text/javascript" src="output.js"></script>

Usage

Configure UserStory after script loading:

<script type="text/javascript" src="bower_components/UserStory/lib/UserStory.js"></script>
<script type="text/javascript">
    UserStory.configure({
        on: ['*'],
        off: ['foo.bar'],
        logger: function (message, section){
            console.log('My custon log', message, section);
        }
    });
</script>

or type in console:

UserStory.on('*');
UserStory.off('foo.bar');
UserStory.reset();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published