Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@techor/one-liner
Advanced tools
npm install @techor/one-liner
import oneLiner from '@techor/one-liner';
// or
import { l } from '@techor/one-liner';
l
is equal to l
l`a ${true && 'b'} c`;
// 'a b c'
l`a ${{ b: true, c: false, d: isTrue() }} e`;
// 'a b d e'
l`a ${['b', 0, false, 'c']} d`;
// 'a b c d'
l`a ${true} ${false} ${''} ${null} ${undefined} ${0} ${NaN} b`
// 'a b'
l`
a
b
${undefined}
c d
`
// 'a b c d'
l`
a
${
[
1 && 'b',
{ c: false, d: null },
['e', ['f']]
]
}
g h
`;
// 'a b e f g h'
l`a b ${['c', 'd']} ${{ e: true, f: false }} ${true && 'g'}`;
// or
line('a b', ['c', 'd'], { e: true, f: false }, true && 'g');
// 'a b c d e g'
className
strings conditionallyFAQs
Conditionally assign and trim strings into one line ~250B
The npm package @techor/one-liner receives a total of 26 weekly downloads. As such, @techor/one-liner popularity was classified as not popular.
We found that @techor/one-liner 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.