
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
@cerebrusinc/fstring
Advanced tools
This package brings some Python string formatting to Javascript! Currently you can:
npm install @techtronics/fstring
or
yarn add @techtronics/fstring
It goes hand in hand with our quality of life package qol
// ES6 Module
import * as fstring from "@techtronics/fstring";
// ES6 Destructuring
import { abbreviate, toTitleCase, toSentenceCase } from "@techtronics/fstring";
// ES5 Module
const fstring = require("@techtronics/fstring");
// ES5 Destructuring
const {
abbreviate,
toTitleCase,
toSentenceCase,
} = require("@techtronics/fstring");
const sentence = "heLLo wOrLD, mY NAME is lEwis; i am a Developer.";
const name = "lEwiS mOsho junior";
console.log(toSentenceCase(sentence));
// Hello world, my name is lewis; I am a developer.
console.log(toTitleCase(name));
// Lewis Mosho Junior
console.log(abbreviate(name));
// LMJ
Make an abbreviation of a string; Usually used for names. It returns a capital case abbreviation of the string.
Parameter | Default Setting | Required? | Definition |
---|---|---|---|
txt | null | Yes | The string you wish to abbreviate |
delimiter | " " | No | The character or string that seperates words in the string |
reverse | false | No | An option to enable you to request a reversed return string |
Make any string title cased. it returns a string in which every first letter of a word is upper cased with the rest being lower cased.
Parameter | Default Setting | Required? | Definition |
---|---|---|---|
txt | null | Yes | The string you wish to change to title case |
delimiter | " " | No | The character or string that seperates words in the string |
Make any string sentence cased; The current sentence delimiters are:
.
;
:
!
?
It returns a string in which every first letter of the first word of a sentence is capitalised, with the reaminder of the senter being lower cased.
Parameter | Default Setting | Required? | Definition |
---|---|---|---|
txt | null | Yes | The string you wish to change to sentence case |
delimiter | " " | No | The character or string that seperates words in the string |
toSentenceCase
FAQs
This brings Python string manipulation to js!
The npm package @cerebrusinc/fstring receives a total of 6 weekly downloads. As such, @cerebrusinc/fstring popularity was classified as not popular.
We found that @cerebrusinc/fstring 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.