I'm creating a new programming language specific to our use cases. And I'm looking for an already available package manager I can reuse for dependency management of my language. I plan to use npm as the package manager because it's quite popular and easy to use.
For example, a package containing the new language might look like:
pkgA/ helloworld.me # my language package.json And with dependencies installed:
pkgA/ node_modules/ pkgB/ hithere.me package.json helloworld.me package.json package-lock.json In the code, language and its compiler will have its own way to resolve references.
# helloworld.me > "hello world" using dependency
# helloworld.me import pkgB.hithere > "hello world" < hithere I have been exploring answers to the following questions. It would be great and very helpful if you have already done something similar.
- Can
npmbe used with any other language? - Is this a good or bad idea?
- Are there any restrictions
npmplatform might have? - Are there any other package managers specifically designed as language agnostic? or do i have to build my own PM?