
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
Produce data for your TensorFlow pipelines directly in node.
This module uses ES2017's async / await, so it requires node.js 7.6 or above.
While this module will presumably be used to interoperate with TensorFlow, it does not require a working TensorFlow installation.
const tfrecord = require('tfrecord');
async function writeDemo() {
const writer = await tfrecord.createWriter('data.tfrecord');
const example = tfrecord.Example.fromObject({
features: {
feature: {
answer: { // The feature name.
int64List: {
value: [42], // The feature value.
},
},
},
},
});
await writer.writeExample(example);
await writer.close();
}
async function readDemo() {
const reader = await tfrecord.createReader('data.tfrecord');
let example;
while (example = await reader.readExample()) {
console.log('%j', example.toJSON());
}
// The reader auto-closes after it reaches the end of the file.
}
async function demo() {
await writeDemo();
await readDemo();
}
demo();
Run the following command to populate the pre-generated files. These files are distributed in the npm package, but not checked into the git repository.
scripts/generate.sh
The test data can be regenerated by the following command, which requires a working TensorFlow installation on Python 3.
python3 scripts/write_test_data.py
The test data is in the repository so we don't have to spend the time to install TensorFlow on Travis for every run.
FAQs
Reader and writer for the TensorFlow Record file format
The npm package tfrecord receives a total of 4 weekly downloads. As such, tfrecord popularity was classified as not popular.
We found that tfrecord demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.