Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
download-purescript-source
Advanced tools
Readme
A Node.js module to download PureScript source from GitHub
const {readdir} = require('fs').promises;
const downloadPurescript = require('download-purescript-source');
downloadPurescript('./dest/').subscribe({
async complete() {
await readdir('./dest/'); /*=> [
'LICENSE',
'Makefile',
'Setup.hs',
'app',
'bundle',
'core-tests',
'license-generator',
'package.yaml',
'src',
'stack.yaml',
'tests'
] */
}
});
npm install download-purescript-source
const downloadPurescriptSource = require('download-purescript-source');
dir: string
(a directory path where the PureScript source will be downloaded)
options: Object
Return: Observable
(Kevin Smith's implementation)
When the Observable
is subscribed, it starts to download a tar.gz
archive from the PureScript GitHub repository, extract it and successively send dl-tar's progress
objects to its Observer
.
downloadPurescriptSource('my/dir')
.filter(({entry}) => entry.remain === 0)
.forEach(({entry}) => console.log(`✓ ${entry.header.path.replace(/^[^/]*\//, '')}`))
.then(() => console.log('\nCompleted.'));
✓ LICENSE
✓ Makefile
✓ Setup.hs
✓ app/
✓ app/Command/
✓ app/Command/Bundle.hs
✓ app/Command/Compile.hs
✓ app/Command/Docs.hs
✓ app/Command/Docs/
✓ app/Command/Docs/Html.hs
︙
✓ tests/support/pscide/src/RebuildSpecWithDeps.purs
✓ tests/support/pscide/src/RebuildSpecWithForeign.js
✓ tests/support/pscide/src/RebuildSpecWithForeign.purs
✓ tests/support/pscide/src/RebuildSpecWithHiddenIdent.purs
✓ tests/support/pscide/src/RebuildSpecWithMissingForeign.fail
✓ tests/support/setup-win.cmd
Completed.
You can pass options to Request and node-tar's Unpack
constructor. Note that:
strip
option defaults to 1
and can't be changed. That means the top level directory is always stripped off.*{md,yml}
files, some specific files and directories that are unnecessary for building the binary. Pass () => true
to the filter
option if you want to download all files included in the archive.onentry
option is not supported.Additionally, you can use the following:
Type: string
Default: v0.12.5
Specify the commit hash, tag or branch name you want to download.
ISC License © 2017 - 2019 Shinnosuke Watanabe
FAQs
Download PureScript source code from Github
The npm package download-purescript-source receives a total of 39 weekly downloads. As such, download-purescript-source popularity was classified as not popular.
We found that download-purescript-source demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.