In some cases, like for testing purposes, you might want to use an npm package stored on a local machine. Here is how you can do that with one simple command.

Table of contents

    In typical case scenario you pass a published package name when installing it via npm:

    npm install jquery

    Let's say you have awesome-editor library written by yourself stored on your local machine under ~/projects/awesome-editor.

    Installing it in your project is as simple as:

    npm install ~/projects/awesome-editor

    Once the installation is finished you will see a new entry in package.json:

    "awesome-editor": "file:<relative path goes here>",

    That's it, you can now use it in your project!

    Szymon Soppa Web Developer
    Szymon Soppa Curiosum Founder & CEO

    Read more
    on #curiosum blog

    Introducing Kanta - the ultimate solution to translations in Elixir web apps

    Introducing Kanta - the ultimate solution to translations in Elixir & Phoenix web apps

    Handling translations in web applications can be a challenging and time-consuming task. The process entails managing various files, tracking modifications, and ensuring that translations remain current as the project progresses. These complexities can slow down development and introduce errors. That’s why we decided to create an open source solution: Kanta. In this blog post, we’ll explore the problem of managing translations in web apps, and how Kanta simplifies the process. We’ll also compare it with other translation management tools and delve into its powerful plugins.