Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
arrayiffy-if-string
Advanced tools
Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
This package is pure ESM. If you're not ready yet, install an older version of this program, 3.14.0 (npm i arrayiffy-if-string@3.14.0
).
npm i arrayiffy-if-string
import { strict as assert } from "assert";
import { arrayiffy } from "arrayiffy-if-string";
assert.deepEqual(arrayiffy("aaa"), ["aaa"]);
assert.deepEqual(arrayiffy(""), []);
assert.equal(arrayiffy(true), true);
assert.equal(arrayiffy(), undefined);
Please visit codsen.com for a full description of the API.
To report bugs or request features or assistance, raise an issue on GitHub.
MIT License.
Copyright © 2010-2024 Roy Revelt and other contributors.
Thanks to KRyan for types https://stackoverflow.com/a/71834598/3943954
FAQs
Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
The npm package arrayiffy-if-string receives a total of 19,307 weekly downloads. As such, arrayiffy-if-string popularity was classified as popular.
We found that arrayiffy-if-string 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.