Skip to content

npm-js-ts-angular-modules-course/my-pluralize-ts-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-pluralize-ts-ci

Build Status Coverage Status

Source tutorial: https://codeburst.io/https-chidume-nnamdi-com-npm-module-in-typescript-12b3b22f0724 Command to generate coverage report in coveralls: https://coderwall.com/p/gzoxxw/integrating-coveralls-io-with-a-node-js-project

Training with Typescript library publish and training with Travis CI

A Node.js module that returns the plural form of any noun

Installation

npm install mypluralize --save
yarn add mypluralize
bower install pluralize --save

Usage

Javascript

var pluralise = require('mypluralize');
var boys = pluralise.getPlural('Boy');
Output should be 'Boys'

TypeScript

import { getPlural } from 'mypluralize';
console.log(getPlural('Goose'))
Output should be 'Geese'

AMD

define(function(require,exports,module){
  var pluralise = require('mypluralize');
});

Test

npm run test

About

Training with Typescript library publish and training with Travis CI

Resources

License

Stars

Watchers

Forks

Packages

No packages published