1.0.8 • Published 8 years ago
console-log-hiring v1.0.8
console-log-hiring
Console log hiring message 🚀
Package is distributed as JavaScript ES5 build with source maps and TypeScript support.
Usage
var hiring = require("console-log-hiring");
hiring.log();
// We're hiring! 🚀
hiring.resetState();
hiring.log("We're hiring! https://example.com/career/");
// We're hiring! https://example.com/career/ 🚀
hiring.resetState();
hiring.log("We're looking for employees", "😮");
// We're looking for employees 😮log function logs into console (with console.info function) only once per module load. It's convenient in Single Page Applications. If you want to reset its state, just use resetState function.
TypeScript
Package contains TypeScript typings. You don't need install anything more.
import * as hiring from "console-log-hiring";
hiring.log();
// We're hiring! 🚀Install
npm i console-log-hiringTesting
npm testWhy this package even created?
I'd like to learn write tests, configure continuous integration and deployment to npm registry and just write module in TypeScript. Feel free to copy any configurations from this repository.