Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ax

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ax - npm Package Compare versions

Comparing version 0.1.6 to 0.2.0

logger.coffee

79

package.json

@@ -1,58 +0,25 @@

{ "name": "ax"
, "version": "0.1.6"
, "description": "A simple logger"
, "keywords": [ "log", "logger" ]
, "licenses": [
{ "type": "MIT"
, "url": "https://github.com/spire-io/ax/blob/master/ReadMe.md"
}
]
, "homepage": "https://github.com/spire-io/ax"
, "bugs": { "url": "https://github.com/spire-io/ax/issues" }
, "author": { "name": "Dan Yoder"
, "email": "dyoder@spire.io"
{
"name": "ax",
"version": "0.2.0",
"description": "A simple logging library",
"main": "logger.coffee",
"directories": {
"example": "examples"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/automatthew/ax.git"
},
"keywords": [
"logging",
"logger"
],
"author": "Dan Yoder",
"license": "BSD",
"dependencies": {
"sprintf": "0.1.x"
}
, "maintainers": [
{ "name": "Dan Yoder"
, "email": "dyoder@spire.io"
}
, { "name": "Jason Campbell"
, "email": "jason@spire.io"
}
]
, "contributors": [
{ "name": "Dan Yoder"
, "email": "dyoder@spire.io"
}
, { "name": "Jason Campbell"
, "email": "jason@spire.io"
}
, { "name": "Aaveg Mittal"
, "email": "amittal@spire.io"
}
, { "name": "Nikhil Ratan"
, "email": "nratan@spire.io"
}
, { "name": "Matthew King"
, "email": "mking@spire.io"
}
]
, "main" : "./lib/ax.js"
, "repository": { "type": "git"
, "url": "git://github.com/spire-io/ax.git"
}
, "directories":
{ "lib" : "./lib"
, "examples": "./examples"
}
, "dependencies": {
"underscore": "1.3.0"
}
, "devDependencies": { "docco": "0.3.0"
, "vows": "0.6.1"
, "express": "2.5.6"
, "browserify": "1.9.2"
, "uglify-js": "1.2.5"
}
, "engine": "node >= 0.4.10"
}

@@ -5,36 +5,12 @@ ## Ax: Simple Logging Servce

var Ax = require("ax");
var logger = new Ax({level: "debug" });
Ax = require "ax"
logger = new Ax level: "debug"
logger.info "Greetings, Professor Falken"
logger.warn "Warning, Will Robinson!"
logger.error "If I may say so, sir, I noticed earlier the hyperdrive
motivator has been damaged. It's impossible to go to lightspeed."
logger.debug "Instruments register only those things they're designed
to register. Space still contains infinite unknowns."
logger.info("Greetings, Professor Falken.");
logger.warn("Warning, Will Robinson!");
logger.error("If I may say so, sir, I noticed earlier the hyperdrive" +
" motivator has been damaged. It's impossible to go to lightspeed.");
logger.debug("Instruments register only those things they're designed to" +
" register. Space still contains infinite unknowns.");
You can also pass a `file` option to log to a file instead of `stdout` and `stderr`.
# License
(The MIT License)
Copyright (c) 2011 Border Stylo
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.
You can also pass a `stream` option to log to a stream instead of `stdout`.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc