A demo library for typescript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example-consumer use functions for treeshakeability Jun 30, 2018
library-starter use functions for treeshakeability Jun 30, 2018
README.md move readme Jun 30, 2018


Example Typescript 2.x Library

Simple starter library from May 2018. Tutorial can be found at https://www.tsmean.com/articles/how-to-write-a-typescript-library/.

Or just browse the code here! Or clone the repo.


git clone https://github.com/bersling/typescript-library-starter.git

then modify whatever you want, then


You can check if everything is working like this: https://www.tsmean.com/articles/how-to-write-a-typescript-library/local-consumer

You can write a test like this: https://www.tsmean.com/articles/how-to-write-a-typescript-library/unit-testing

And once you're ready, simply change the name in the package.json and publish your brand new cool library. Have fun!