file-contents
Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.
file-contents@1.0.1 was published on 2017-02-03. Its manifest declares 8 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=0.10.0.
All file-contents versions · Permanent reference to 1.0.1
Package specifications
| Version | 1.0.1 |
|---|---|
| License declaration | MIT |
| Published | 2017-02-03T23:13:42.711Z |
| Node.js requirement | >=0.10.0 |
| Type declarations | Not declared |
| Runtime dependency count | 8 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | Not supplied |
| Published file count | Not supplied |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 26 |
| Repository stars | 8 |
| Repository forks | 0 |
Install file-contents 1.0.1
npm install file-contents@1.0.1 pnpm add file-contents@1.0.1 yarn add file-contents@1.0.1
Runtime dependencies
- define-property ^0.2.5
- extend-shallow ^2.0.1
- is-buffer ^1.1.4
- kind-of ^3.1.0
- lazy-cache ^2.0.2
- strip-bom-buffer ^0.1.1
- strip-bom-string ^0.1.2
- through2 ^2.0.3
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- core-util-is@1.0.3 — indirect
- define-property@0.2.5 — direct
- extend-shallow@2.0.1 — direct
- function-bind@1.1.2 — indirect
- hasown@2.0.4 — indirect
- inherits@2.0.4 — indirect
- is-accessor-descriptor@1.0.2 — indirect
- is-buffer@1.1.6 — direct
- is-data-descriptor@1.0.1 — indirect
- is-descriptor@0.1.8 — indirect
- is-extendable@0.1.1 — indirect
- is-utf8@0.2.1 — indirect
- isarray@1.0.0 — indirect
- kind-of@3.2.2 — direct
- lazy-cache@2.0.2 — direct
- process-nextick-args@2.0.1 — indirect
- readable-stream@2.3.8 — indirect
- safe-buffer@5.1.2 — indirect
- set-getter@0.1.1 — indirect
- string_decoder@1.1.1 — indirect
- strip-bom-buffer@0.1.1 — direct
- strip-bom-string@0.1.2 — direct
- through2@2.0.5 — direct
- to-object-path@0.3.0 — indirect
- util-deprecate@1.0.2 — indirect
- xtend@4.0.2 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
|---|---|
| SAST | 0/10 — no SAST tool detected |
| Code-Review | 0/10 — Found 0/30 approved changesets -- score normalized to 0 |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Security-Policy | 0/10 — security policy file not detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
Evidence and freshness
- https://registry.npmjs.org/file-contents/1.0.1 — retrieved 2026-10-29T21:25:50.749Z
- https://api.deps.dev/v3/systems/npm/packages/file-contents/versions/1.0.1 — retrieved 2026-10-29T21:25:51.300Z
- https://api.deps.dev/v3/systems/npm/packages/file-contents/versions/1.0.1:dependencies — retrieved 2026-10-29T21:25:51.338Z
- https://api.deps.dev/v3/projects/github.com%2Fjonschlinkert%2Ffile-contents — retrieved 2026-10-29T21:25:51.483Z