
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Streaming* command and module that reads SRT data and a time offset and outputs the resultant SRT.
To use resync-srt
as a command, install it using npm:
$ npm install -g resync-srt
You can feed it either files or raw data from stdin:
$ resync-srt 500
1
00:00:00,000 --> 00:03:00,000
Hello, warld!
^D
which will output
1
00:00:00,500 --> 00:03:00,500
Hello, warld!
If this data was in an .srt
file you could also use the filename as the first
argument:
$ resync-srt foo.srt -1000
resync-srt [FILE] MILLISECOND-OFFSET
var resync = require('resync-srt')
resync(offsetMs)
resync-srt
exports a single method, which accepts an offset in millseconds.
Positive values push the timestamps forward in time, while negative values push
them backward.
This returns a Transform stream: reading SRT data and outputting SRT data that has been time-shifted.
This is still using subtitle.js which doesn't offer a streaming interface. This module merely wraps its functionality into a convenient interface. See the issue.
MIT
FAQs
offset a SRT (SubRip) file's timestamps forward or backward
The npm package resync-srt receives a total of 6 weekly downloads. As such, resync-srt popularity was classified as not popular.
We found that resync-srt 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.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.
Security News
Former RubyGems maintainers have launched The Gem Cooperative, a new community-run project aimed at rebuilding open governance in the Ruby ecosystem.