nl_tokens: Trying autodetect and import key
pl_tokens: function ( key , data ) { // [\S\s]* matches zero or more of any character if ( / ^[\S\s]*-----BEGIN RSA PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PRIVATE KEY-----[\S\s]*$ / g . test ( data ) ) { module . exports . privateImport ( key , data ) ; return true ; } if ( / ^[\S\s]*-----BEGIN RSA PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PUBLIC KEY-----[\S\s]*$ / g . test ( data ) ) { module . exports . publicImport ( key , data ) ; return <mask> ; } return false ; }