Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eeue56/post-install-elm
Use NPM for managing elm deps
https://github.com/eeue56/post-install-elm
Last synced: 3 months ago
JSON representation
Use NPM for managing elm deps
- Host: GitHub
- URL: https://github.com/eeue56/post-install-elm
- Owner: eeue56
- License: bsd-3-clause
- Created: 2017-02-13T22:16:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-07T00:08:28.000Z (almost 8 years ago)
- Last Synced: 2024-10-01T15:08:39.550Z (4 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# post-install-elm
Use NPM for managing elm deps## Install
```
npm install --save post-install-elm
```## How to use
This package is intendend to enable you to use npm to host your Elm packages. It works by downloading an Elm package from github when passed in.
Add this script as a post install script to your npm package, with the desired package and version.
```javascript
const install = require('post-install-elm').install;install("https://github.com/eeue56/elm-ffi", "1.0.0").then( () => {
console.log('Installed!')
}).catch((err) => {
console.error("Something went wrong when installing!");
console.error(err);
});
```