Skip to content

Make script usable via NPM #2

@giocodes

Description

@giocodes

Here are some suggestions after looking at
https://www.npmjs.com/package/typelighterjs

  • Add a package.json to TypeLighterJS repo, so npm updates the information correctly.
  • Export Typewriter and addCssCursor, so they can be called as needed, instead of added to the global scope.
  • Update the docs to show how to install/use from NPM

@EdernClemente in case it helps, I suggest taking a look at this free course:
https://egghead.io/lessons/javascript-introduction-to-how-to-write-an-open-source-javascript-library

If you want to provide users the flexibility, to also use the script on a browser directly see: https://egghead.io/lessons/javascript-add-a-browser-build-to-an-npm-module

I'm also happy to help with any questions or contributions :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions