@fredmilhau/npm-dummy-lib
v1.0.9
Published
this is a simple template of npm typescript lib
Downloads
5
Readme
npm-dummy-lib
this is a simple template of npm typescript lib
https://codeburst.io/https-chidume-nnamdi-com-npm-module-in-typescript-12b3b22f0724
https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c
Installation
npm install @fredmilhau/npm-dummy-lib --save
yarn add @fredmilhau/npm-dummy-lib
bower install @fredmilhau/npm-dummy-lib --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