
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
fasttext.wasm.js
Advanced tools
WebAssembly version of fastText with compressed lid.176.ftz
model (~900KB) and a typescript wrapper This project focuses on cross-platform, zero-dependency and out-of-the-box.
// Node
import {
LanguageIdentificationModel,
initializeFastTextModule,
} from 'fasttext.wasm.js'
await initializeFastTextModule()
// Use lid.176.ftz as default model
const model = new LanguageIdentificationModel()
await model.load()
const result = await model.identify('Hello, world!')
console.log(result) // 'en'
// Browser
import {
LanguageIdentificationModel,
initializeFastTextModule,
} from 'fasttext.wasm.js/browser'
await initializeFastTextModule()
const model = new LanguageIdentificationModel({
// Specific model path under public dir,
// You can download it from https://fasttext.cc/docs/en/language-identification.html
modelHref: '/models/lid.176.ftz',
})
await model.load()
const result = await model.identify('Hello, world!')
console.log(result) // 'en'
npm run build
npx changeset
npx changeset version
git commit
npx changeset publish
git push --follow-tags
0.0.1-next.2
FAQs
Node and Browser env supported WebAssembly version of fastText: Library for efficient text classification and representation learning.
The npm package fasttext.wasm.js receives a total of 918 weekly downloads. As such, fasttext.wasm.js popularity was classified as not popular.
We found that fasttext.wasm.js 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.