
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
Utility functions for converting strings to native types and vice versa.
npm install cli-native
npm test
var native = require('cli-native');
native.to('1,2,3', ','); // => [1, 2, 3]
native.to('true'); // => true
native.to('false'); // => false
native.to('null'); // => null
native.to('undefined'); // => undefined
native.to('value'); // => 'value'
native.to('{"arr":[1,2,3]}', null, true); // => {arr: [1, 2 ,3]}
Convert a string to a native type.
str: The string to convert.delimiter: A delimiter to use to convert to arrays.json: A boolean indicating that strings that appear to be JSON should be parsed.Convert a native type to a string.
val: The value to convert to a string.delimiter: A delimiter to used to join arrays.json: A boolean indicating that complex objects should be serialized to JSON.FAQs
Native type conversion functions
The npm package cli-native receives a total of 82 weekly downloads. As such, cli-native popularity was classified as not popular.
We found that cli-native 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.