Remove the @scope part from given string How it works npm install remove-scope --save const removeScope = require('remove-scope').removeScope removeScope('@package/test-name'); // => 'test-name'