
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
@npmcli/name-from-folder
Advanced tools
Get the package name from a folder path, including the scope if the
basename of the dirname starts with @
.
For a path like /x/y/z/@scope/pkg
it'll return @scope/pkg
. If the path
name is something like /x/y/z/pkg
, then it'll return pkg
.
const nameFromFolder = require('@npmcli/name-from-folder')
const name = nameFromFolder('/some/folder/path')
3.0.0 (2024-09-24)
@npmcli/name-from-folder
now supports node ^18.17.0 || >=20.5.0
c6232a0
#58 enable auto publish (#58) (@reggi)bad5ce6
#56 run template-oss-apply (@hashtagchris)6901265
#54 Bump @npmcli/eslint-config from 4.0.5 to 5.0.0 (@dependabot[bot])4b07860
#55 Bump @npmcli/template-oss from 4.23.1 to 4.23.3 (@dependabot[bot])be16c20
#52 Bump @npmcli/template-oss from 4.22.0 to 4.23.1 (@dependabot[bot])f77cefb
#43 bump @npmcli/template-oss to 4.22.0 (@lukekarrys)47a905e
#42 Bump @npmcli/template-oss from 4.21.3 to 4.21.4 (@dependabot[bot])bbae674
#38 Bump @npmcli/template-oss from 4.21.1 to 4.21.3 (@dependabot[bot])a444cf5
#35 Bump @npmcli/template-oss from 4.19.0 to 4.21.1 (@dependabot[bot])833849b
#15 Bump @npmcli/template-oss from 4.13.0 to 4.19.0 (@dependabot[bot])f6eb29a
#13 Bump @npmcli/template-oss from 4.11.4 to 4.13.0 (#13) (@dependabot[bot], @npm-cli-bot, @nlf)b382ed4
#12 Bump @npmcli/template-oss from 4.11.3 to 4.11.4 (#12) (@dependabot[bot], @npm-cli-bot, @nlf)36e8841
#11 Bump @npmcli/template-oss from 4.11.0 to 4.11.3 (@dependabot[bot])961243e
#55 postinstall for dependabot template-oss PR (@hashtagchris)FAQs
Get the package name from a folder path
The npm package @npmcli/name-from-folder receives a total of 2,624,040 weekly downloads. As such, @npmcli/name-from-folder popularity was classified as popular.
We found that @npmcli/name-from-folder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.