Installations
npm install jupyter-paths
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
12.22.1
NPM Version
7.17.0
Score
66.1
Supply Chain
88.8
Quality
83.3
Maintenance
100
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
nteract
Download Statistics
Total Downloads
1,102,339
Last Day
11
Last Week
163
Last Month
947
Last Year
12,039
GitHub Statistics
9 Stars
133 Commits
11 Forks
38 Watching
18 Branches
157 Contributors
Package Meta Information
Latest Version
2.0.4
Package Id
jupyter-paths@2.0.4
Size
5.31 kB
NPM Version
7.17.0
Node Version
12.22.1
Publised On
12 Jun 2021
Total Downloads
Cumulative downloads
Total Downloads
1,102,339
Last day
-81.7%
11
Compared to previous day
Last week
-42%
163
Compared to previous week
Last month
-0.8%
947
Compared to previous month
Last year
-26.9%
12,039
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
jupyter-paths
Pure JavaScript implementation of jupyter-paths
.
npm install jupyter-paths
Usage
1$ node 2> var jp = require('jupyter-paths')
runtimeDir()
Returns immediately with the path to running kernels
1> jp.runtimeDir() 2'/Users/rgbkrk/Library/Jupyter/runtime'
dataDirs()
1> jp.dataDirs() 2[ '/Users/rgbkrk/Library/Jupyter', 3 '/usr/share/jupyter', 4 '/usr/local/share/jupyter' ]
If you want the paths to include the sys.prefix
paths (for Anaconda installs),
an optional opts
parameter is accepted with key withSysPrefix
. This changes
the return to a promise for you instead.
1> jp.dataDirs({ withSysPrefix: true }) 2Promise { <pending> } 3> jp.dataDirs({ withSysPrefix: true }).then(console.log) 4Promise { <pending> } 5> [ '/Users/rgbkrk/Library/Jupyter', 6 '/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/share/jupyter', 7 '/usr/share/jupyter', 8 '/usr/local/share/jupyter' ]
configDirs()
Like dataDirs
, an optional opts
parameter is accepted with key
withSysPrefix
as an argument.
1> jp.configDirs({ withSysPrefix: true }).then(console.log) 2Promise { <pending> } 3> [ '/Users/rgbkrk/.jupyter', 4 '/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/etc/jupyter', 5 '/usr/local/etc/jupyter', 6 '/etc/jupyter' ]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: BSD 3-Clause "New" or "Revised" License: LICENSE:0
Reason
Found 2/9 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-release.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/nteract/jupyter-paths/npm-release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-release.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/nteract/jupyter-paths/npm-release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/nteract/jupyter-paths/npm-release.yml/main?enable=pin
- Warn: pipCommand not pinned by hash: .github/workflows/npm-release.yml:19
- Warn: pipCommand not pinned by hash: .github/workflows/npm-release.yml:20
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 pipCommand dependencies pinned
- Info: 1 out of 1 npmCommand dependencies pinned
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/npm-release.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 25 are checked with a SAST tool
Reason
33 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-2h3h-q99f-3fhc
- Warn: Project is vulnerable to: GHSA-gmw6-94gg-2rc2
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm
- Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-hj9c-8jmm-8c52
- Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-x2pg-mjhr-2m5x
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw
- Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7
Score
2.8
/10
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More