
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
npm i --save seco-file
// ES6 modules:
import * as seco from 'seco-file'
// OR
// CommonJS:
const seco = require('seco-file')
write()write(file, data, options)
file (String) Filename to write todata (String | Buffer) Data to write to the fileoptions (Object)
header (Object)
appName (String) Name of your appappVersion (String) Version of your apppassphrase (String | Buffer) Passphrase used to encrypt the datametadata (Object)blobKey (Buffer)overwrite (Boolean) When true, overwrites file if it already exists. Default is false.Note: Must set either passphrase or metadata & blobKey.
Returns a Promise. Promise resolves to an Object that contains blobKey and metadata.
read()read(file, passphrase)
file (String) File to readpassphrase (String | Buffer) Passphrase to decrypt the file.Returns a Promise, resolving to an object that contains:
data (Buffer) The file dataheader (Object) The header for the secure-containerblobKey (Buffer)metadata (Object)MIT
FAQs
Methods to read/write secure containers to files.
The npm package seco-file receives a total of 45 weekly downloads. As such, seco-file popularity was classified as not popular.
We found that seco-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.